ODataUtils.SetHasDefaultStream Method

Adds or removes a default stream to/from the entityType.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetHasDefaultStream ( _
    model As IEdmModel, _
    entityType As IEdmEntityType, _
    hasStream As Boolean _
)
'Usage
Dim model As IEdmModel 
Dim entityType As IEdmEntityType 
Dim hasStream As Boolean 

model.SetHasDefaultStream(entityType, _
    hasStream)
public static void SetHasDefaultStream(
    this IEdmModel model,
    IEdmEntityType entityType,
    bool hasStream
)
[ExtensionAttribute]
public:
static void SetHasDefaultStream(
    IEdmModel^ model, 
    IEdmEntityType^ entityType, 
    bool hasStream
)
static member SetHasDefaultStream : 
        model:IEdmModel * 
        entityType:IEdmEntityType * 
        hasStream:bool -> unit
public static function SetHasDefaultStream(
    model : IEdmModel, 
    entityType : IEdmEntityType, 
    hasStream : boolean
)

Parameters

  • hasStream
    Type: System.Boolean
    true to add a default stream to the entity type; false to remove an existing default stream (if any).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ODataUtils Class

Microsoft.Data.OData Namespace