Share via


Index.PartitionScheme Property

Gets or sets the partition scheme associated with the index.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property PartitionScheme As String
    Get
    Set
'Usage
Dim instance As Index
Dim value As String

value = instance.PartitionScheme

instance.PartitionScheme = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public string PartitionScheme { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property String^ PartitionScheme {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member PartitionScheme : string with get, set
function get PartitionScheme () : String
function set PartitionScheme (value : String)

Property Value

Type: System.String
A String value that specifies the partition scheme associated with the index.

Remarks

This property cannot be modified by using the Alter() method. To change the property, the index must be rebuilt or re-created.

Note

For indexes based on the UserDefinedTableType object the value of PartitionScheme property is an empty string.