ResourceManager.DefaultContext 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前正在运行的应用程序的默认 ResourceContext 。 除非显式重写,否则默认 ResourceContext 用于确定任何给定命名资源的最合适的表示形式。
注意
defaultContext 在Windows 8.1后可能会更改或不可用于发布。 请改用 ResourceContext.GetForCurrentView。
public:
property ResourceContext ^ DefaultContext { ResourceContext ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("DefaultContext may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use ResourceContext.GetForCurrentView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
ResourceContext DefaultContext();
/// [get: Windows.Foundation.Metadata.Deprecated("DefaultContext may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use ResourceContext.GetForCurrentView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
ResourceContext DefaultContext();
ResourceContext DefaultContext();
public ResourceContext DefaultContext { [Windows.Foundation.Metadata.Deprecated("DefaultContext may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use ResourceContext.GetForCurrentView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public ResourceContext DefaultContext { [Windows.Foundation.Metadata.Deprecated("DefaultContext may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use ResourceContext.GetForCurrentView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
public ResourceContext DefaultContext { get; }
var resourceContext = resourceManager.defaultContext;
Public ReadOnly Property DefaultContext As ResourceContext
属性值
资源上下文。
- 属性