Share via


ServerInstance.Register<T> Method

Namespace:  Microsoft.TeamFoundation.Framework.Server.Alm.Catalog.Objects
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected Shared Function Register(Of T As ServerInstance) ( _
    machine As Machine, _
    displayName As String, _
    instanceName As String, _
    children As ICollection(Of T) _
) As T
protected static T Register<T>(
    Machine machine,
    string displayName,
    string instanceName,
    ICollection<T> children
)
where T : ServerInstance
protected:
generic<typename T>
where T : ServerInstance 
static T Register(
    Machine^ machine, 
    String^ displayName, 
    String^ instanceName, 
    ICollection<T>^ children
)
static member Register : 
        machine:Machine * 
        displayName:string * 
        instanceName:string * 
        children:ICollection<'T> -> 'T  when 'T : ServerInstance
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: T

.NET Framework Security

See Also

Reference

ServerInstance Class

Microsoft.TeamFoundation.Framework.Server.Alm.Catalog.Objects Namespace