TableHttpRequestMessageExtensions.SetSelectedProperties Method
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
| SetSelectedProperties(HttpRequestMessage, Type, Boolean) |
Determines the set of properties to include in the OData $select query option for types implementing the
ITableData interface. ITableData has two sets of properties: regular properties and
system properties. The system properties are only included if the |
| SetSelectedProperties(HttpRequestMessage, Type, IDictionary<String,String>, Boolean) |
Determines the set of properties to include in the OData $select query option for types implementing the
ITableData interface. ITableData has two sets of properties: regular properties and
system properties. The system properties are only included if the |
SetSelectedProperties(HttpRequestMessage, Type, Boolean)
Determines the set of properties to include in the OData $select query option for types implementing the
ITableData interface. ITableData has two sets of properties: regular properties and
system properties. The system properties are only included if the __systemproperties query parameter is
included in the Request URI. This function determines the combined set of selected properties and updates the
request URI accordingly, if necessary.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="It's ok to have an out parameter here.")]
public static System.Collections.Generic.IList<string> SetSelectedProperties(this System.Net.Http.HttpRequestMessage request, Type data, out bool isModified);
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="It's ok to have an out parameter here.")>]
static member SetSelectedProperties : System.Net.Http.HttpRequestMessage * Type * bool -> System.Collections.Generic.IList<string>
<Extension()>
Public Function SetSelectedProperties (request As HttpRequestMessage, data As Type, ByRef isModified As Boolean) As IList(Of String)
Parameters
- request
- System.Net.Http.HttpRequestMessage
The System.Net.Http.HttpRequestMessagerequest
- data
- System.Type
The type of the data model.
- isModified
- System.Boolean
Indicates whether the original Request URI $select clause has been manipulated or not.
Returns
In the case of a type implementing, the set of properties selected; otherwise null.
- Attributes
-
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute
Remarks
The query is not actually validated in this step -- this happens as part of the System.Web.Http.QueryableAttribute validation.
Applies to
SetSelectedProperties(HttpRequestMessage, Type, IDictionary<String,String>, Boolean)
Determines the set of properties to include in the OData $select query option for types implementing the
ITableData interface. ITableData has two sets of properties: regular properties and
system properties. The system properties are only included if the __systemproperties query parameter is
included in the Request URI. This function determines the combined set of selected properties and updates the
request URI accordingly, if necessary.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="It's ok to have an out parameter here.")]
public static System.Collections.Generic.IList<string> SetSelectedProperties(this System.Net.Http.HttpRequestMessage request, Type data, System.Collections.Generic.IDictionary<string,string> systemPropertyMap, out bool isModified);
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification="It's ok to have an out parameter here.")>]
static member SetSelectedProperties : System.Net.Http.HttpRequestMessage * Type * System.Collections.Generic.IDictionary<string, string> * bool -> System.Collections.Generic.IList<string>
<Extension()>
Public Function SetSelectedProperties (request As HttpRequestMessage, data As Type, systemPropertyMap As IDictionary(Of String, String), ByRef isModified As Boolean) As IList(Of String)
Parameters
- request
- System.Net.Http.HttpRequestMessage
The System.Net.Http.HttpRequestMessagerequest
- data
- System.Type
The type of the data model.
- systemPropertyMap
- System.Collections.Generic.IDictionary<System.String,System.String>
Optional map specifying replacement names for system properties.
- isModified
- System.Boolean
Indicates whether the original Request URI $select clause has been manipulated or not.
Returns
In the case of a type implementing, the set of properties selected; otherwise null.
- Attributes
-
System.Diagnostics.CodeAnalysis.SuppressMessageAttribute
Remarks
The query is not actually validated in this step -- this happens as part of the System.Web.Http.QueryableAttribute validation.