Class AuthProperty
A property of an AuthContext. Note: experimental API that can change or be removed without any prior notice.
Inheritance
System.Object
AuthProperty
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public class AuthProperty : object
Properties
Name
Gets the name of the property.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets the string value of the property.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
ValueBytes
Gets the binary value of the property.
Declaration
public byte[] ValueBytes { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Methods
Create(String, Byte[])
Creates an instance of AuthProperty
.
Declaration
public static AuthProperty Create(string name, byte[] valueBytes)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | the name |
System.Byte[] | valueBytes | the binary value of the property |
Returns
Type | Description |
---|---|
AuthProperty |