你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceSelector Class

Definition

The resource selector to filter policies by resource properties.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.ResourceSelectorTypeConverter))]
public class ResourceSelector : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IResourceSelector
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.ResourceSelectorTypeConverter))>]
type ResourceSelector = class
    interface IResourceSelector
    interface IJsonSerializable
Public Class ResourceSelector
Implements IResourceSelector
Inheritance
ResourceSelector
Attributes
Implements

Constructors

ResourceSelector()

Creates an new ResourceSelector instance.

Properties

Name

The name of the resource selector.

Selector

The list of the selector expressions.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ResourceSelector.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ResourceSelector.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IResourceSelector.

FromJsonString(String)

Creates a new instance of ResourceSelector, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ResourceSelector into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to