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
string Name {get; set;}
__property String* get_Name();
__property void set_Name(String*);
function get Name() : String;function set Name(String);

Property Value

Returns the string literal name of the item.


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.


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

© 2016 Microsoft