Set Property (-PROP) command for COM
Use the Set Property adapter command (-PROP) to set specific properties on the component at run time.
-PROP [dispid:vartype:data]
- Option
- Description
- [ ]
- The brackets surrounding the parameter are required.
- :
- Required separator.
- dispid
- Specify a valid dispatch ID (DISPID) property.
- vartype
- Specify a valid data type. SeeSupported Data Types for more information.
- data
- Data type as represented by the text. A string is a sequence of characters; an integer is a sequence of digits, and so on.
For example, to specify a dispatch ID of 3, a data type of BSTR, and text data:
-PROP [3:VT_BSTR:data]
Note: If
any properties exist on the command line, the properties are set before
executing any other call on the component. If an error is received
setting any of the properties, the process is aborted with errors.
See Determining the Dispatch ID for a Method/Property for information on how to determine the dispatch ID for a property.