This documentation is archived and is not being maintained.

IsShared Property (General Extensibility)

Visual Studio .NET 2003

Sets or returns whether or not the item is statically defined, that is, if the item is common to all instances of this object type, or only to this object specifically.

[Visual Basic .NET]
Public Property IsShared() As Boolean
[Visual Basic 6]
Property Get IsShared() As Boolean
Property Let IsShared( _
   ByVal NewValue As Boolean _
) 
[C++]
HRESULT __stdcall get_IsShared(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
HRESULT __stdcall put_IsShared(
   /* [in] */ VARIANT_BOOL NewValue
);
[C#]
bool IsShared {get; set;}
[JScript .NET]
public function get IsShared() : Boolean
public function set IsShared(
   NewValue : Boolean
)

Parameters

NewValue
The new value. True if the method is shared; False if otherwise.

Return Value

True if the method is shared; False if otherwise.

Remarks

IsShared returns or sets whether the method is associated with a class or with instances of a class. Note that setting this might yield language-dependent errors, and even if IsShared returns successfully, it does not mean the resulting code change will compile successfully.

Note   This property is read-only for code elements from Visual Basic .NET source code.

See Also

Applies To: CodeFunction Object | CodeVariable Object | VCCodeFunction Object | VCCodeVariable Object

Show: