ModelItem.Name Property
When overridden in a derived class, gets or sets the name or ID of the item.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Property Name As String
Get
Set
public abstract string Name { get; set; }
public:
virtual property String^ Name {
String^ get () abstract;
void set (String^ value) abstract;
}
abstract Name : string with get, set
abstract function get Name () : String
abstract function set Name (value : String)
Property Value
Type: System.String
A string representing the name of the item.
Remarks
Not all items need to have names, so this property may return nulla null reference (Nothing in Visual Basic). Also, depending on the type of item and where it is located in the hierarchy, it may not always be valid to set the name on an item. If this item's ItemType property declares a RuntimeNamePropertyAttribute, this Name property is a direct mapping to the property dictated by that attribute.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace