Share via


VariationLabel.Language Property

Returns the Language of the Variation Label.

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

Syntax

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

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

Property Value

Type: System.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.

Remarks

This property affects which localized version of Site Template is used when creating a 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