Share via


VariationLabel.Locale Property

Returns the Locale of the Variation Label.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public ReadOnly Property Locale As String
    Get
'Usage
Dim instance As VariationLabel
Dim value As String

value = instance.Locale
public string Locale { get; }

Property Value

Type: System.String
String value of the Locale of the Variation Label, in the format of the locale identifier number that can be used to instantiate System.Globalization.CultureInfo objects by culture identifier.

Remarks

This property affects the Locale value set on the Site (SPWeb) when creating Site for this Variation Label.

Examples

            Reference code on how to use this property can be found in "/_controltemplates/VariationRootLanding.ascx".
            

See Also

Reference

VariationLabel Class

VariationLabel Members

Microsoft.SharePoint.Publishing Namespace