ResourceManager.DefaultContext Proprietà

Definizione

Ottiene il valore predefinito ResourceContext per l'applicazione attualmente in esecuzione. A meno che non venga eseguito l'override esplicito, il valore predefinito ResourceContext viene usato per determinare la rappresentazione più appropriata di qualsiasi risorsa denominata specificata.

Nota

DefaultContext può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece 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

Valore della proprietà

Contesto della risorsa.

Attributi

Si applica a

Vedi anche