Package.GetProviderLocale Method

Definition

Returns the locale associated with this service provider.

public:
 int GetProviderLocale();
public:
 int GetProviderLocale();
int GetProviderLocale();
public int GetProviderLocale ();
member this.GetProviderLocale : unit -> int
Public Function GetProviderLocale () As Integer

Returns

Returns the locale identifier for the service provider.

Remarks

The GetProviderLocale method returns the locale identifier for the service provider passed to the managed VSPackage when it is loaded. This is useful for users of the VSPackage to determine what locale they should honor. Note that there is no need to set the CurrentUICulture setting of the framework since the Package class sets this for you.

Applies to