Share via


PartitionScheme.PartitionFunction Property

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

This API is not CLS-compliant. 

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<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
'Usage
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)

Property Value

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

Examples

Using Filegroups and Files to Store Data

See Also

Reference

PartitionScheme Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

CREATE PARTITION SCHEME (Transact-SQL)