共用方式為


Volume 類別

The Volume type represents information about a volume or disk partition on a computer in the SQL Server Utility domain. 

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcInstance
    Microsoft.SqlServer.Management.Utility..::..Volume

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<PhysicalFacetAttribute> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR",  _
    True)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class Volume _
    Inherits SfcInstance
'用途
Dim instance As Volume
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[PhysicalFacetAttribute]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class Volume : SfcInstance
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[PhysicalFacetAttribute]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class Volume sealed : public SfcInstance
[<SealedAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<PhysicalFacetAttribute>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Utility.FacetSR", 
    true)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type Volume =  
    class
        inherit SfcInstance
    end
public final class Volume extends SfcInstance

Volume 型別公開下列成員。

建構函式

  名稱 說明
公用方法 Volume() () () () Initializes a new instance of the Volume class.
公用方法 Volume(Computer, String) Initializes a new instance of the Volume class with the specified connection.

上層

屬性

  名稱 說明
受保護的屬性 AbstractIdentityKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用屬性 DeviceId Gets the device Id of the volume instance.
公用屬性 ID Gets the ID value that uniquely identifies the volume.
公用屬性 IdentityKey Gets the Key value that uniquely identifies the volume.
公用屬性 Metadata Returns metadata about the instance and its domain. (繼承自 SfcInstance。)
公用屬性 Name Gets the String value that specifies the name of the volume.
公用屬性 Parent Gets the Computer object value that specifies is the parent of the Volume object.
公用屬性 Properties Returns a collection instance properties. (繼承自 SfcInstance。)
受保護的屬性 PropertyStorageProvider 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的屬性 State Returns the state of the SfcInstance object. (繼承自 SfcInstance。)
公用屬性 TotalSpace Gets the total storage capacity of the volume in megabytes.
公用屬性 TotalSpaceUsed Gets the total used storage on the volume in megabytes.
公用屬性 TotalSpaceUtilization Gets the space used as a percentage of the total storage capacity of the volume.
公用屬性 Urn Returns the uniform resource name of the SfcInstance object. (繼承自 SfcInstance。)

上層

方法

  名稱 說明
受保護的方法 AlterImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectCreated 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CheckObjectState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CreateIdentityKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 CreateImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Discover 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 DropImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 GetChildCollection 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 GetDomain 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 GetHashCode (繼承自 Object。)
公用方法靜態成員 GetObjectFactory Gets the factory object used to create new instances.
公用方法 GetPropertySet Returns the set of properties for the SfcInstance object. (繼承自 SfcInstance。)
公用方法 GetType (繼承自 Object。)
受保護的方法 GetTypeMetadataImpl Indicates the domains that override by returning the right TypeMetadata class directly. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 InitializeUIPropertyState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MarkForDropImpl Returns a value that indicates the existing objects to be dropped. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MarkRootAsConnected 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 MoveImpl Indicates the new parent object to move in an instance. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 OnPropertyMetadataChanges Invoked whenever the effective value of any SfcInstance metadata is updated. (繼承自 SfcInstance。)
受保護的方法 OnPropertyValueChanges Invoked whenever the effective value of any SfcInstance property is updated. (繼承自 SfcInstance。)
受保護的方法 PostAlter 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostCreate Indicates the default implementor that creates the execution result. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostDrop 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostMove 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 PostRename 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Refresh Refreshes the object's properties by reading them from the server. (繼承自 SfcInstance。)
受保護的方法 RenameImpl 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 ResetKey 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用方法 Serialize Serializes the instance to XML. (繼承自 SfcInstance。)
公用方法 ToString Returns a string representation of the instance Urn. (繼承自 SfcInstance。)
受保護的方法 UpdateUIPropertyState 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
受保護的方法 Validate Indicates the basic child object's validation. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)

上層

事件

  名稱 說明
受保護的事件 propertyChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用事件 PropertyChanged CLS-compliant event for property changes. (繼承自 SfcInstance。)
受保護的事件 propertyMetadataChanged 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcInstance。)
公用事件 PropertyMetadataChanged CLS-compliant event for property metadata changes. (繼承自 SfcInstance。)

上層

備註

The Volume object represents information about a volume or disk partition on a computer in the SQL Server Utility domain. Using the Volume object, you can:

  • Determine whether the volume is a mount point, and its location.

  • Determine the total disk space, the space used and the space utilization.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。