Class GrpcGetSwitchReply
Returns information about a specific Hyper-V switch.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcGetSwitchReply
Constructors
GrpcGetSwitchReply()
Default constructor.
Declaration
public GrpcGetSwitchReply()
GrpcGetSwitchReply(GrpcVirtualSwitch?)
Constructor.
Declaration
public GrpcGetSwitchReply(GrpcVirtualSwitch? @switch)
Parameters
Type | Name | Description |
---|---|---|
GrpcVirtualSwitch | switch | The switch details or |
GrpcGetSwitchReply(Exception)
Error constructor.
Declaration
public GrpcGetSwitchReply(Exception e)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | The exception. |
Properties
Error
Set to a non-null error when the request failed.
Declaration
[DataMember(Order = 1)]
public GrpcError? Error { get; set; }
Property Value
Type | Description |
---|---|
GrpcError |
Switch
Describes the switch or null
when the switch doesn't exist.
Declaration
[DataMember(Order = 2)]
public GrpcVirtualSwitch? Switch { get; set; }
Property Value
Type | Description |
---|---|
GrpcVirtualSwitch |