共用方式為


CatalogNode.CreateChild Method (Guid, String)

Factory method for creating a node with a new resource. This does not persist the node or the resource.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function CreateChild ( _
    resourceTypeIdentifier As Guid, _
    resourceDisplayName As String _
) As CatalogNode
public CatalogNode CreateChild(
    Guid resourceTypeIdentifier,
    string resourceDisplayName
)
public:
CatalogNode^ CreateChild(
    Guid resourceTypeIdentifier, 
    String^ resourceDisplayName
)
member CreateChild : 
        resourceTypeIdentifier:Guid * 
        resourceDisplayName:string -> CatalogNode
public function CreateChild(
    resourceTypeIdentifier : Guid, 
    resourceDisplayName : String
) : CatalogNode

Parameters

  • resourceTypeIdentifier
    Type: System.Guid

    The resource type that describes the resource being created.

  • resourceDisplayName
    Type: System.String

    The display name for the resource being created.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.CatalogNode
The constructed node with the attached resource.

.NET Framework Security

See Also

Reference

CatalogNode Class

CreateChild Overload

Microsoft.TeamFoundation.Framework.Client Namespace