ConfigMgrBgbSession.CreateSession Method (BgbSessionType, String, UInt16, MessageSecurityMode, SmsClientId, ClientVersionBase, MessageCertificateX509)
Creates a new client notification session of a specific type.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static ConfigMgrBgbSession CreateSession(
BgbSessionType sessionType,
string bgbServerHostName,
ushort port,
MessageSecurityMode securityMode,
SmsClientId smsId,
ClientVersionBase clientVersion,
MessageCertificateX509 certificate
)
public:
static ConfigMgrBgbSession^ CreateSession(
BgbSessionType sessionType,
String^ bgbServerHostName,
unsigned short port,
MessageSecurityMode securityMode,
SmsClientId^ smsId,
ClientVersionBase^ clientVersion,
MessageCertificateX509^ certificate
)
Public Shared Function CreateSession (
sessionType As BgbSessionType,
bgbServerHostName As String,
port As UShort,
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.
port
Type: System.UInt16Client notification server port.
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