Class BaseActionMethodRequestBuilder<T>
The base method request builder class used for POST actions.
Inheritance
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public abstract class BaseActionMethodRequestBuilder<T> : BaseRequestBuilder where T : IBaseRequest
Type Parameters
Name | Description |
---|---|
T | Type of request |
Constructors
View SourceBaseActionMethodRequestBuilder(String, IBaseClient)
Initializes a new instance of the BaseActionMethodRequestBuilder<T> class.
Declaration
public BaseActionMethodRequestBuilder(string requestUrl, IBaseClient client)
Parameters
Type | Name | Description |
---|---|---|
System.String | requestUrl | The URL for the request. |
IBaseClient | client | The IBaseClient for handling requests. |
Methods
View SourceCreateRequest(String, IEnumerable<Option>)
Derived classes implement this function to construct the specific request class instance when a request object is required.
Declaration
protected abstract T CreateRequest(string functionUrl, IEnumerable<Option> options)
Parameters
Type | Name | Description |
---|---|---|
System.String | functionUrl | The URL to use for the request. |
System.Collections.Generic.IEnumerable<Option> | options | The query and header options for the request. |
Returns
Type | Description |
---|---|
T | An instance of the request class. |
GetParameter<TU>(String)
Gets the parameter.
Declaration
protected TU GetParameter<TU>(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
TU | The Parameter |
Type Parameters
Name | Description |
---|---|
TU | The type of the parameter. |
HasParameter(String)
Determines whether the instance has parameter.
Declaration
protected bool HasParameter(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Request(IEnumerable<Option>)
Builds the request.
Declaration
public T Request(IEnumerable<Option> options = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Option> | options | The query and header options for the request. |
Returns
Type | Description |
---|---|
T | The built request. |
SetParameter<TU>(String, TU, Boolean)
A helper method for injecting a parameter string for a given name and value pair. This method handles the nullable case and properly wrapped and escaping string values.
Declaration
protected void SetParameter<TU>(string name, TU value, bool nullable)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The parameter name. |
TU | value | The parameter value. |
System.Boolean | nullable | A flag specifying whether the parameter is allowed to be null. |
Type Parameters
Name | Description |
---|---|
TU | The type of the value parameter. |