Property Parameters

The following table lists the recommended names and functionality for property parameters.

Parameter Functionality
Count
Data type: Int32
Implement this parameter so that the user can specify the number of objects to be processed.
Description
Data type: String
Implement this parameter so that the user can specify a description for a resource.
From
Data type: String
Implement this parameter so that the user can specify the reference object to get information from.
Id
Data type: Resource dependent
Implement this parameter so that the user can specify the identifier of a resource.
Input
Data type: String
Implement this parameter so that the user can specify the input file specification.
Location
Data type: String
Implement this parameter so that the user can specify the location of the resource.
LogName
Data type: String
Implement this parameter so that the user can specify the name of the log file to process or use.
Name
Data type: String
Implement this parameter so that the user can specify the name of the resource.
Output
Data type: String
Implement this parameter so that the user can specify the output file.
Owner
Data type: String
Implement this parameter so that the user can specify the name of the owner of the resource.
Property
Data type: String
Implement this parameter so that the user can specify the name or the names of the properties to use.
Reason
Data type: String
Implement this parameter so that the user can specify why this cmdlet is being invoked.
Regex
Data type: SwitchParameter
Implement this parameter so that regular expressions are used when the parameter is specified. When this parameter is specified, wildcard characters are not resolved.
Speed
Data type: Int32
Implement this parameter so that the user can specify the baud rate. The user sets this parameter to the speed of the resource.
State
Data type: Keyword array
Implement this parameter so that the user can specify the names of states, such as KEYDOWN.
Value
Data type: Object
Implement this parameter so that the user can specify a value to provide to the cmdlet.
Version
Data type: String
Implement this parameter so that the user can specify the version of the property.

See Also

Cmdlet Parameters

Writing a Windows PowerShell Cmdlet

Windows PowerShell SDK