Deployment Tools Foundation
Item Property (fieldName)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Record ► Item[([(String])])
Gets or sets a record field value.
Declaration Syntax
Parameters
- fieldName (String)
- Specifies the name of the field of the Record to get or set.
Remarks
When getting a field, the type of the object returned depends on the type of the Record field. The object will be one of: Int16, Int32, String, Stream, or null.
When setting a field, the type of the object provided will be converted to match the View query that returned the record, or if Record was not returned from a view then the type of the object provided will determine the type of the Record field. The object should be one of: Int16, Int32, String, Stream, or null.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The name does not match any known field of the Record. |