Creates a new instance of the ServerPlatformSettings class.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
applicationUserAgent 
As 
String, _
	
localhost 
As 
String, _
	
port 
As 
Integer, _
	
gruu 
As 
String, _
	
certificate 
As 
X509Certificate _
)
C#
public 
ServerPlatformSettings(
	
string 
applicationUserAgent,
	
string 
localhost,
	
int 
port,
	
string 
gruu,
	
X509Certificate 
certificate
)
Visual C++
public:
ServerPlatformSettings(
	
String^ 
applicationUserAgent, 
	
String^ 
localhost, 
	
int 
port, 
	
String^ 
gruu, 
	
X509Certificate^ 
certificate
)
JavaScript

Microsoft.Rtc.Collaboration.ServerPlatformSettings = 
function(
applicationUserAgent, 
localhost, 
port, 
gruu, 
certificate);

Parameters

applicationUserAgent
Type: String
The part of the user agent string that identifies the application. Can be null.
localhost
Type: String
The FQDN of the machine where the application is deployed.
port
Type: Int32
The port to listen for incoming connections.
gruu
Type: String
The trusted GRUU for the application.
certificate
Type: X509Certificate
The certificate to use.

Remarks

Initializes the setting used for creating a platform that uses a server model with a certificate.

Remarks

The certificate should be installed in the local computer certificate store.

Exceptions

Exception Condition
ArgumentException Thrown when parameters are null or empty.
ArgumentOutOfRangeException Thrown when the port value is out of range.
ArgumentException Thrown when the GRUU specified is not a valid GRUU.

See Also