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 _
)
C#
public 
ServerPlatformSettings(
	
string 
applicationUserAgent,
	
string 
localhost,
	
int 
port,
	
string 
gruu
)
Visual C++
public:
ServerPlatformSettings(
	
String^ 
applicationUserAgent, 
	
String^ 
localhost, 
	
int 
port, 
	
String^ 
gruu
)
JavaScript

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

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.

Remarks

Initializes the settings used for creating a platform that uses a server model.

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