Share via


TModelInfo.Name Property

Note: The Microsoft UDDI SDK is not supported by or included in Microsoft Windows versions after Microsoft Windows Server 7. The Microsoft UDDI V3 SDK is included with Microsoft BizTalk Server. For more information about the Microsoft UDDI V3 SDK, see Microsoft BizTalk Server documentation
Gets or sets the name of the tModel for this TModelInfo object.

Namespace: Microsoft.Uddi.TModels
Assembly: microsoft.uddi (in microsoft.uddi.dll)

Usage

Visual Basic
  Dim instance As TModelInfo
Dim value As Name
value = instance.Name
instance.Name = value

Syntax

'Declaration
<XmlElementAttribute("name")> _
PublicPropertyNameAsName
[XmlElementAttribute("name")] 
publicNameName { get; set; }
[XmlElementAttribute(L"name")] 
public:
propertyName^ Name {
    Name^ get ();
    voidset (Name^ value);
}
/** @property */
publicNameget_Name ()

/** @property */
publicvoidset_Name (Namevalue)
publicfunction getName () : Namepublicfunction setName (value : Name)

Property Value

The name of the tModel for this TModelInfo object.

Example

The following example shows how to use the C# programming language to display the Name property in a console window.

static void GetCategorizationSchemesExample( UddiConnection validConnection )
{
   FindTModel getTModel = new FindTModel();
   getTModel.CategoryBag.Add( CommonCanonical.UddiOrgTypes, 
            "categorization", "Categorization (taxonomy)" );
   TModelList list = new TModelList();
   list = getTModel.Send( validConnection );
   foreach(TModelInfo info in list.TModelInfos)
   {
      Console.WriteLine( "\r\n" + info.Name.Text );
   }
}

The following example shows how to use the Visual Basic .NET programming language to display Name property in a console window.

Sub GetCategorizationSchemesExample(ByVal conn As UddiConnection)
   Dim getTModel As New FindTModel
   getTModel.CategoryBag.Add(TModels.CommonCanonical.UddiOrgTypes, _
                      "categorization", "Categorization (taxonomy)")
   Dim list As New TModelList
   list = getTModel.Send(conn)
   Dim info As TModels.TModelInfo
   For Each info In list.TModelInfos
      Console.WriteLine(vbCrLf + info.Name.Text)
   Next
End Sub

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP

See Also

Reference

TModelInfo Class
TModelInfo Members
Microsoft.Uddi.TModels Namespace

Other Resources

Finding Categorization Schemes
Microsoft.Uddi.TModels Namespace