ODATADetailLevel.ExpandClause Property
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.
Gets or sets the OData expand clause. Used to retrieve associated entities of the main entity being retrieved.
public string ExpandClause { get; set; }
member this.ExpandClause : string with get, set
Public Property ExpandClause As String
Property Value
Remarks
This is an optional OData $expand expression string (see the OData specification). Properties containing associated entities will be null unless included in an ExpandClause. Specifically, if you perform a List, Get or Refresh and do not specify an ExpandClause, then all associated entity properties will be null. For example, if you perform a ListPools(DetailLevel, IEnumerable<BatchClientBehavior>) operation without an ExpandClause then the Statistics property will be null. To populate the Statistics property you must supply an ExpandClause of stats
. Refer to individual class documentation to find out which properties are considered associated entities.
If you specify both an ExpandClause and a SelectClause, then properties listed in the ExpandClause must be repeated in the SelectClause (because only properties listed in the SelectClause are included in the service response). (This requirement does not arise if you do not specify a SelectClause, because that means 'include all properties in the response.')
Expansions must be specified using REST API attribute names, not .NET property names.
The default is no expand expression, which means no associated objects are returned (and the corresponding properties are null).
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應