VariationLabel.Language Property

Definition

Returns the Language of the Variation Label.

public:
 property System::String ^ Language { System::String ^ get(); };
[Microsoft.SharePoint.Client.ClientCallableProperty(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, RequiredRight=Microsoft.SharePoint.Client.ResourceRight.None)]
public string Language { get; }
member this.Language : string
Public ReadOnly Property Language As String

Property Value

String

The Language value of the Variation Label, in the format "languagecode2-country/regioncode2" that follows the RFC 1766 standard, where "languagecode2" is a lowercase two-letter code derived from ISO 639-1 and "country/regioncode2" is an uppercase two-letter code derived from ISO 3166. The value can be used to instantiate System.Globalization.CultureInfo objects by name.

Attributes
ClientCallablePropertyAttribute

Examples

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

Remarks

This property affects which localized version of Site Template is used when creating a site for this Variation Label.

Applies to