Compartilhar via


DomainClassInfo.TryGetName Method

Verifies whether the element has a name and returns the name if it exists.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
Public Shared Function TryGetName ( _
    element As ModelElement, _
    <OutAttribute> ByRef name As String _
) As Boolean
public static bool TryGetName(
    ModelElement element,
    out string name
)
public:
static bool TryGetName(
    ModelElement^ element, 
    [OutAttribute] String^% name
)
static member TryGetName : 
        element:ModelElement * 
        name:string byref -> bool 
public static function TryGetName(
    element : ModelElement, 
    name : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the element has a name; otherwise, false.

.NET Framework Security

See Also

Reference

DomainClassInfo Class

Microsoft.VisualStudio.Modeling Namespace