Registers an extension with the platform.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
RegisterPlatformExtension ( _
	
extension 
As 

MediaBasedFactory _
)
C#
public 
void 
RegisterPlatformExtension(
	

MediaBasedFactory 
extension
)
Visual C++
public:
void 
RegisterPlatformExtension(
	

MediaBasedFactory^ 
extension
)
JavaScript
function 
registerPlatformExtension(
extension);

Parameters

extension
Type: Microsoft.Rtc.Collaboration.ComponentModel . . :: . MediaBasedFactory
The extension to register.

Remarks

Extensions such as call factories that support specific media types can be registered only if there is no existing extension for that media type.

Exceptions

Exception Condition
InvalidOperationException Thrown when the extension cannot be combined with already configured extensions.

See Also