多项选择题
You are creating an application that provides information about the local computer.The application contains a form that lists each logical drive along with the drive properties,such as type,volume label,and capacity.You need to write a procedure that retrieves properties of each logical drive on the local computer. What should you do?()
A.Retrieve an instance of the FileSystemInfo class.
B.Retrieve an instance of the DriveInfo class.
C.Retrieve the drive capacity by using the DriveInfo.TotalSize property.
D.Determine if the drive is available by using the FileSystemInfo.Attributes property.
E.Retrieve the drive names of all logical drives on a computer by using the DriveInfo.GetDrives method.
F.Retrieve the drive capacity by using the FileSystemInfo.Attributes property.
相关考题
-
单项选择题
You work as an application developer at Certkiller .com. You would like to create a custom performance counter for an application that you created recently. To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications. What should you do?()
A.A
B.B
C.C
D.D -
多项选择题
Youaredevelopinganapplicationtocreateanewfileonthelocalfilesystem.Youneedtodefinespecificsecuritysettingsforthefile.Youmustdenythefileinheritanceofanydefaultsecuritysettingsduringcreation.Whatshouldyoudo?()
A.Create the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.
B.Create a new FileSecurity object.
C.Apply the permissions by using the File class.
D.Create a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.
E.Create a new FileSystem Audit Rule object and add it to the FileSecurity object. -
单项选择题
You work as an application developer at Certkiller .com. Certkiller .com is currently using a performance counter named HitCounter. You are required to increment each time a user accesses the UI classes within the application. To do this, you start by creating performance counters using the following code: You have to adjust the HitCounter performance counter when a hit occurs. What should you do?()
A.A
B.B
C.C
D.D
