Compartir a través de


DscPropertyAttribute Class

Definition

When specified on a property or field of a DSC Resource, the property can or must be specified in a configuration, unless it is marked NotConfigurable, in which case it is returned by the Get() method of the resource.

public ref class DscPropertyAttribute : System::Management::Automation::Internal::CmdletMetadataAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public class DscPropertyAttribute : System.Management.Automation.Internal.CmdletMetadataAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type DscPropertyAttribute = class
    inherit CmdletMetadataAttribute
Public Class DscPropertyAttribute
Inherits CmdletMetadataAttribute
Inheritance
DscPropertyAttribute
Attributes

Constructors

DscPropertyAttribute()

Properties

Key

Indicates the property is a required key property for a DSC resource.

Mandatory

Indicates the property is a required property for a DSC resource.

NotConfigurable

Indicates the property is not a parameter to the DSC resource, but the property will contain a value after the Get() method of the resource is called.

Applies to