Object Property [Variant 2] (General Extensibility)
Visual Studio .NET 2003
Sets or returns the object supporting the specified object.
[Visual Basic .NET]
Public Property Object() As Object
[Visual Basic 6]
Property Get Object() As Object Property Let Object( _ ByVal NewValue As Object _ )
[C++]
HRESULT __stdcall get_Object( /* [out, retval] */ IDispatch** retVal ); HRESULT __stdcall put_Object( /* [in] */ IDispatch* NewValue );
[C#]
object Object {get; set;}
[JScript .NET]
public function get Object() : Object public function set Object( NewValue : Object )
Parameters
- NewValue
- Required. An object to which the Property object is set.
Return Value
- For the Addin object, sets or returns an additional OLE automation object to support other add-ins.
- For the Property object, sets or returns the value of the Property object when its type is Object.
Remarks
If an Add-in uses Property.Value instead of Property.Object, then the Property object returns a Properties collection instead of an Object value. That is, the IDispatch that would be returned via Property.Object is wrapped so that Property.Value returns a nested Properties collection.
Example
Sub ObjectExample() Dim objAddin1 As AddIn Dim objaddin2 As Object objAddin1 = DTE.AddIns.Item(1) objaddin2 = objAddin1.Object MsgBox(Val(objaddin2)) End Sub
See Also
Applies To: AddIn Object | Property Object