Item Property (fieldName)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Item Property (fieldName)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerRecordItem[([( String])])
Gets or sets a record field value.
Declaration Syntax
C# Visual Basic Visual C++
public Object this[
	string fieldName
] { get; set; }
Public Default Property Item ( 
	fieldName As String
) As Object
	Get
	Set
public:
property Object^ default[String^ fieldName] {
	Object^ get (String^ fieldName);
	void set (String^ fieldName, Object^ value);
}
Parameters
fieldName (String)
Specifies the name of the field of the Record to get or set.
Property Value
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.

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)