共用方式為


ResourceManager.DefaultContext 屬性

定義

取得目前執行中應用程式的預設 ResourceCoNtext 。 除非明確覆寫,否則會使用預設 ResourceCoNtext 來判斷任何指定具名資源最適當的標記法。

注意

在Windows 8.1之後,可能會變更或無法使用 DefaultCoNtext。 請改用 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

屬性值

資源內容。

屬性

適用於

另請參閱