RequestMetadata 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
RequestMetadata() |
Initializes a new instance of the RequestMetadata class. |
RequestMetadata(String, String, String) |
Initializes a new instance of the RequestMetadata class. |
RequestMetadata()
- Source:
- RequestMetadata.cs
- Source:
- RequestMetadata.cs
Initializes a new instance of the RequestMetadata class.
public:
RequestMetadata();
public RequestMetadata ();
Public Sub New ()
Remarks
This constructor initializes MethodType to GET
, and all other properties to "unknown"
.
Applies to
RequestMetadata(String, String, String)
- Source:
- RequestMetadata.cs
- Source:
- RequestMetadata.cs
Initializes a new instance of the RequestMetadata class.
public RequestMetadata (string methodType, string requestRoute, string requestName = "unknown");
new Microsoft.Extensions.Http.Diagnostics.RequestMetadata : string * string * string -> Microsoft.Extensions.Http.Diagnostics.RequestMetadata
Public Sub New (methodType As String, requestRoute As String, Optional requestName As String = "unknown")
Parameters
- methodType
- String
HTTP method type of the request.
- requestRoute
- String
Route of the request.
- requestName
- String
Name of the request.
Exceptions
Any argument is null
.
Remarks
The DependencyName property is initialized to "unknown"
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for