次の方法で共有


LanguagePreferences.Site Property

Definition

This property is not public for a reason. If it were public it would get called during LoadSettingsFromStorage which will break it.
Instead use GetSite().

protected:
 property IServiceProvider ^ Site { IServiceProvider ^ get(); void set(IServiceProvider ^ value); };
protected IServiceProvider Site { get; set; }
member this.Site : IServiceProvider with get, set
Protected Property Site As IServiceProvider

Property Value

An IServiceProvider object or null if the service provider was not set.

Remarks

The value returned is the same value passed to the LanguagePreferences constructor. This property is typically not set outside the LanguagePreferences class itself.

Applies to