DomainClassInfo.TryGetName(ModelElement, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.