Class ChannelOption
Channel option specified when creating a channel. Corresponds to grpc_channel_args from grpc/grpc.h.
Inheritance
System.Object
    ChannelOption
  Inherited Members
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public sealed class ChannelOptionConstructors
ChannelOption(String, Int32)
Creates a channel option with an integer value.
Declaration
public ChannelOption(string name, int intValue)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Name. | 
| System.Int32 | intValue | Integer value. | 
ChannelOption(String, String)
Creates a channel option with a string value.
Declaration
public ChannelOption(string name, string stringValue)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Name. | 
| System.String | stringValue | String value. | 
Properties
IntValue
Gets the integer value the ChannelOption.
Declaration
public int IntValue { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Name
Gets the name of the ChannelOption.
Declaration
public string Name { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
StringValue
Gets the string value the ChannelOption.
Declaration
public string StringValue { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Type
Gets the type of the ChannelOption.
Declaration
public ChannelOption.OptionType Type { get; }Property Value
| Type | Description | 
|---|---|
| ChannelOption.OptionType |