Udostępnij za pośrednictwem


DomainClassInfo.TryGetName(ModelElement, String) Method

Definition

Checks whether element has a name property and returns its value if so.

public:
 static bool TryGetName(Microsoft::VisualStudio::Modeling::ModelElement ^ element, [Runtime::InteropServices::Out] System::String ^ % name);
public static bool TryGetName (Microsoft.VisualStudio.Modeling.ModelElement element, out string name);
static member TryGetName : Microsoft.VisualStudio.Modeling.ModelElement * string -> bool
Public Shared Function TryGetName (element As ModelElement, ByRef name As String) As Boolean

Parameters

element
ModelElement

Element.

name
String

Name property value.

Returns

True if element has name property and false otherwise.

Exceptions

element is null.

Applies to