Dela via


CredentialAttribute Class

Definition

Defines the attribute used to designate a cmdlet parameter as one that should accept credentials.

public ref class CredentialAttribute sealed : System::Management::Automation::ArgumentTransformationAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class CredentialAttribute : System.Management.Automation.ArgumentTransformationAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false)>]
type CredentialAttribute = class
    inherit ArgumentTransformationAttribute
Public NotInheritable Class CredentialAttribute
Inherits ArgumentTransformationAttribute
Inheritance
Attributes

Constructors

CredentialAttribute()

Properties

TransformNullOptionalParameters

Methods

Transform(EngineIntrinsics, Object)

Transforms the input data to an PSCredential.

Applies to