ConfigMgrBgbSession.CreateSession Method (BgbSessionType, String, MessageSecurityMode, SmsClientId, ClientVersionBase, MessageCertificateX509)
Creates a new client notification session of a specific type using the default port.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static ConfigMgrBgbSession CreateSession(
BgbSessionType sessionType,
string bgbServerHostName,
MessageSecurityMode securityMode,
SmsClientId smsId,
ClientVersionBase clientVersion,
MessageCertificateX509 certificate
)
public:
static ConfigMgrBgbSession^ CreateSession(
BgbSessionType sessionType,
String^ bgbServerHostName,
MessageSecurityMode securityMode,
SmsClientId^ smsId,
ClientVersionBase^ clientVersion,
MessageCertificateX509^ certificate
)
Public Shared Function CreateSession (
sessionType As BgbSessionType,
bgbServerHostName As String,
securityMode As MessageSecurityMode,
smsId As SmsClientId,
clientVersion As ClientVersionBase,
certificate As MessageCertificateX509
) As ConfigMgrBgbSession
Parameters
sessionType
Type: Microsoft.ConfigurationManagement.Messaging.Messages.BgbSessionTypeSession type.
bgbServerHostName
Type: System.StringClient notification server host name.
securityMode
Type: Microsoft.ConfigurationManagement.Messaging.Framework.MessageSecurityModeMessage security mode. This parameter is not used by all session types.
smsId
Type: Microsoft.ConfigurationManagement.Messaging.Framework.SmsClientIdClient's SMSID.
clientVersion
Type: Microsoft.ConfigurationManagement.Messaging.Framework.ClientVersionBaseClient version.
certificate
Type: Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509Client's certificate.
Return Value
Type: Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrBgbSession
Client notification session object.
See Also
CreateSession Overload
ConfigMgrBgbSession Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top