Bagikan melalui


EdmStructuredType.AddStructuralProperty Method (String, EdmPrimitiveTypeKind, Boolean)

Creates and adds a nullable structural property to this type.

Namespace:  Microsoft.Data.Edm.Library
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
Public Function AddStructuralProperty ( _
    name As String, _
    type As EdmPrimitiveTypeKind, _
    isNullable As Boolean _
) As EdmStructuralProperty
'Usage
Dim instance As EdmStructuredType 
Dim name As String 
Dim type As EdmPrimitiveTypeKind 
Dim isNullable As Boolean 
Dim returnValue As EdmStructuralProperty 

returnValue = instance.AddStructuralProperty(name, _
    type, isNullable)
public EdmStructuralProperty AddStructuralProperty(
    string name,
    EdmPrimitiveTypeKind type,
    bool isNullable
)
public:
EdmStructuralProperty^ AddStructuralProperty(
    String^ name, 
    EdmPrimitiveTypeKind type, 
    bool isNullable
)
member AddStructuralProperty : 
        name:string * 
        type:EdmPrimitiveTypeKind * 
        isNullable:bool -> EdmStructuralProperty
public function AddStructuralProperty(
    name : String, 
    type : EdmPrimitiveTypeKind, 
    isNullable : boolean
) : EdmStructuralProperty

Parameters

  • isNullable
    Type: System.Boolean
    Flag specifying if the property is nullable.

Return Value

Type: Microsoft.Data.Edm.Library.EdmStructuralProperty
Created structural property.

See Also

Reference

EdmStructuredType Class

AddStructuralProperty Overload

Microsoft.Data.Edm.Library Namespace