共用方式為


DataServiceBehavior.AcceptProjectionRequests 屬性

取得或設定是否應該接受投影要求。

命名空間:  System.Data.Services
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Property AcceptProjectionRequests As Boolean
    Get
    Set
'用途
Dim instance As DataServiceBehavior
Dim value As Boolean

value = instance.AcceptProjectionRequests

instance.AcceptProjectionRequests = value
public bool AcceptProjectionRequests { get; set; }
public:
property bool AcceptProjectionRequests {
    bool get ();
    void set (bool value);
}
member AcceptProjectionRequests : bool with get, set
function get AcceptProjectionRequests () : boolean
function set AcceptProjectionRequests (value : boolean)

屬性值

型別:System.Boolean
如果支援投影要求則為 true,否則為 false。

備註

投影要求是透過使用 $select 查詢選項來建立。

請參閱

參考

DataServiceBehavior 類別

System.Data.Services 命名空間