MethodResponse Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MethodResponse(Int32) |
Constructor which uses the input byte array as the body. |
MethodResponse(Byte[], Int32) |
Make a new instance of the return class and validates that the payload is correct JSON. |
MethodResponse(Int32)
Constructor which uses the input byte array as the body.
public MethodResponse (int status);
new Microsoft.Azure.Devices.Client.MethodResponse : int -> Microsoft.Azure.Devices.Client.MethodResponse
Public Sub New (status As Integer)
Parameters
- status
- Int32
An integer code containing a method call status.
Applies to
MethodResponse(Byte[], Int32)
Make a new instance of the return class and validates that the payload is correct JSON.
public MethodResponse (byte[] result, int status);
new Microsoft.Azure.Devices.Client.MethodResponse : byte[] * int -> Microsoft.Azure.Devices.Client.MethodResponse
Public Sub New (result As Byte(), status As Integer)
Parameters
- result
- Byte[]
data returned by the method call.
- status
- Int32
status indicating success or failure.
Applies to
Azure SDK for .NET