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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기