Partager via


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

  • bgbServerHostName
    Type: System.String

    Client notification server host name.

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