GlobalInterfaces.Add<T>(String, Object) 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.
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
.