Share via


GlobalInterfaces.Add<T>(String, Object) Method

Definition

Adds an interface to the global interfaces collection by type.

public:
generic <typename T>
 bool Add(System::String ^ appName, System::Object ^ app);
public bool Add<T> (string appName, object app);
member this.Add : string * obj -> bool
Public Function Add(Of T) (appName As String, app As Object) As Boolean

Type Parameters

T

Specifies the type of interface to add.

Parameters

appName
String

Specifies the name of the application

app
Object

Specifies the application object.

Returns

True if the interface is successfully added, otherwise false.

Applies to