Mode Property
Gets or sets the end-to-end security mode.
Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Syntax
'Declaration
Public Property Mode As EndToEndSecurityMode
Get
Set
'Usage
Dim instance As NetEventRelaySecurity
Dim value As EndToEndSecurityMode
value = instance.Mode
instance.Mode = value
public EndToEndSecurityMode Mode { get; set; }
public:
property EndToEndSecurityMode Mode {
EndToEndSecurityMode get ();
void set (EndToEndSecurityMode value);
}
member Mode : EndToEndSecurityMode with get, set
function get Mode () : EndToEndSecurityMode
function set Mode (value : EndToEndSecurityMode)
Property Value
Type: Microsoft.ServiceBus. . :: . .EndToEndSecurityMode
Returns an EndToEndSecurityMode that contains the security mode. The default is None.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The value is not a valid security mode. |