Show / Hide Table of Contents

Class BaseFunctionMethodRequestBuilder<T>

The base method request builder class.

Inheritance
System.Object
BaseRequestBuilder
BaseFunctionMethodRequestBuilder<T>
Inherited Members
BaseRequestBuilder.Client
BaseRequestBuilder.RequestUrl
BaseRequestBuilder.AppendSegmentToRequestUrl(String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public abstract class BaseFunctionMethodRequestBuilder<T> : BaseRequestBuilder where T : IBaseRequest
Type Parameters
Name Description
T

Type of request

Constructors

View Source

BaseFunctionMethodRequestBuilder(String, IBaseClient)

Initializes a new instance of the BaseFunctionMethodRequestBuilder<T> class.

Declaration
public BaseFunctionMethodRequestBuilder(string requestUrl, IBaseClient client)
Parameters
Type Name Description
System.String requestUrl

The URL for the request.

IBaseClient client

The IBaseClient for handling requests.

Properties

View Source

PassParametersInQueryString

Gets a value indicating whether [pass parameters in query string].

Declaration
protected bool PassParametersInQueryString { get; }
Property Value
Type Description
System.Boolean

true if [pass parameters in query string]; otherwise, false.

Methods

View Source

CreateRequest(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.

View Source

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.

View Source

SetParameter(String, Object, 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(string name, object value, bool nullable)
Parameters
Type Name Description
System.String name

The parameter name.

System.Object value

The parameter value.

System.Boolean nullable

A flag specifying whether the parameter is allowed to be null.

See Also

BaseRequestBuilder
  • View Source
Back to top Generated by DocFX