共用方式為


PartitionFunction.NumberOfPartitions 屬性

Gets the number of partitions.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property NumberOfPartitions As Integer 
    Get
'用途
Dim instance As PartitionFunction 
Dim value As Integer 

value = instance.NumberOfPartitions
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int NumberOfPartitions { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int NumberOfPartitions {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member NumberOfPartitions : int
function get NumberOfPartitions () : int

屬性值

型別:System.Int32
An Int32 that specifies the number of partitions.

範例

使用檔案群組和檔案來儲存資料

請參閱

參考

PartitionFunction 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE PARTITION FUNCTION (Transact-SQL)