Name Property
Collapse the table of content
Expand the table of content

IVsaItem.Name Property

Sets or gets the name of the item.

[Visual Basic]
Property Name As String
[C#]
string Name {get; set;}
[C++]
__property String* get_Name();
__property void set_Name(String*);
[JScript]
function get Name() : String;function set Name(String);

Property Value

Returns the string literal name of the item.

Remarks

Use the IVsaEngine.IsValidIdentifier method to ensure that the Name property is set to a valid name.

The new Name value must not already exist as a key in the IVsaEngine.Items collection.

The following table shows the exceptions that the Name property can throw.

Exception Type Condition
EngineClosed The IVsaEngine.Close method has been called and the engine is closed.
EngineRunning The engine is running.
ItemNameInUse The specified name is already in use in the IVsaItems collection.
ItemNameInvalid The name of the item is not valid.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaItem Interface | IVsaItem Members | Microsoft.Vsa Namespace | IVsaEngine.IsValidIdentifier | IVsaEngine.Items

Show:
© 2016 Microsoft