ResourceCandidate 类

定义

表示给定资源的单个可能值、与该资源关联的限定符,以及这些限定符与解析它的上下文的匹配程度。

public ref class ResourceCandidate sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.ApplicationModel.Resources.IResourceCandidateFactory, 65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.ApplicationModel.Resources.MrtContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ResourceCandidate final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.ApplicationModel.Resources.IResourceCandidateFactory), 65536, "Microsoft.ApplicationModel.Resources.MrtContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.ApplicationModel.Resources.MrtContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ResourceCandidate
function ResourceCandidate(kind, data)
Public NotInheritable Class ResourceCandidate
继承
Object Platform::Object IInspectable ResourceCandidate
属性

构造函数

ResourceCandidate(Byte[])

使用指定值创建 ResourceCandidate 类的实例。

ResourceCandidate(ResourceCandidateKind, String)

使用指定值创建 ResourceCandidate 类的实例。

属性

Kind

获取此 ResourceCandidate 中封装的资源的类型。

QualifierValues

获取与此 ResourceCandidate 关联的限定符。

ValueAsBytes

获取以字节为单位表示的 ResourceCandidate 的值。

ValueAsString

获取表示为字符串的 ResourceCandidate 的值。

适用于