PartitionScheme.PartitionFunction 属性

Gets or sets the name of the partition function used in this partition scheme.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(PartitionFunction), "Server[@Name = '{0}']/Database[@Name = '{1}']/PartitionFunction[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property PartitionFunction As String 
    Get 
    Set
用法
Dim instance As PartitionScheme 
Dim value As String 

value = instance.PartitionFunction

instance.PartitionFunction = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(PartitionFunction), "Server[@Name = '{0}']/Database[@Name = '{1}']/PartitionFunction[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string PartitionFunction { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(PartitionFunction), L"Server[@Name = '{0}']/Database[@Name = '{1}']/PartitionFunction[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ PartitionFunction {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(PartitionFunction), "Server[@Name = '{0}']/Database[@Name = '{1}']/PartitionFunction[@Name = '{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member PartitionFunction : string with get, set
function get PartitionFunction () : String 
function set PartitionFunction (value : String)

属性值

类型:System.String
A String value that specifies the name of the partition function.

示例

使用文件组和文件存储数据

请参阅

参考

PartitionScheme 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

CREATE PARTITION SCHEME (Transact-SQL)