DscPropertyAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |