Export (0) Print
Expand All
Expand Minimize

Name Property (Reference Object)

Visual Studio .NET 2003

Returns the name of the object. Read-only.

[Visual Basic .NET]
Public ReadOnly Property Name() As String
[Visual Basic 6]
Property Get Name() As String
[C++]
HRESULT __stdcall get_Name(
   /* [out, retval] */ BSTR* retVal
);
[C#]
string Name {get;}
[JScript .NET]
public function get Name() : String

Return Value

String.

The string returned depends on the reference type.

Reference TypeValue Returned
AssemblyThe assembly name, which is the file name of the reference without the extension.
COMThe name of the wrapper for the referenced type library, which is the file name without the extension.

Remarks

This property specifies the .NET Framework name of the referenced assembly, whether the assembly is a .NET Framework assembly or a wrapper for a COM type library.

Example

See the example in the Reference Object topic.

See Also

Applies To: Reference Object

Show:
© 2014 Microsoft