Share via


Key Property

Gets or sets the encryption key.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Property Key As String
    Get
    Set
'Usage
Dim instance As SdpEncryptionKey
Dim value As String

value = instance.Key

instance.Key = value
public string Key { get; set; }

Property Value

Type: System..::..String

Exceptions

Exception Condition
ArgumentNullException

Thrown when it is a nullNothingnullptrunita null reference (Nothing in Visual Basic) string.

ArgumentException

Thrown when it is an empty string.

Remarks

If the [Method] property indicates prompt, this property is not used. If the method is base64, the value should be base64-encoded. If the method is [Uri], the value should be a URI. The format is not checked by the parser.

See Also

Reference

SdpEncryptionKey Class

SdpEncryptionKey Members

Microsoft.Rtc.Signaling Namespace