共用方式為


Package.GetProviderLocale Method

Returns the locale associated with this service provider.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public Function GetProviderLocale As Integer
'用途
Dim instance As Package
Dim returnValue As Integer

returnValue = instance.GetProviderLocale()
public int GetProviderLocale()
public:
int GetProviderLocale()
member GetProviderLocale : unit -> int 
public function GetProviderLocale() : int

Return Value

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

.NET Framework Security

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace