Share via


EdmStructuredType.AddStructuralProperty Method (String, IEdmTypeReference, String, EdmConcurrencyMode)

Creates and adds a 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 IEdmTypeReference, _
    defaultValue As String, _
    concurrencyMode As EdmConcurrencyMode _
) As EdmStructuralProperty
'Usage
Dim instance As EdmStructuredType 
Dim name As String 
Dim type As IEdmTypeReference 
Dim defaultValue As String 
Dim concurrencyMode As EdmConcurrencyMode 
Dim returnValue As EdmStructuralProperty 

returnValue = instance.AddStructuralProperty(name, _
    type, defaultValue, concurrencyMode)
public EdmStructuralProperty AddStructuralProperty(
    string name,
    IEdmTypeReference type,
    string defaultValue,
    EdmConcurrencyMode concurrencyMode
)
public:
EdmStructuralProperty^ AddStructuralProperty(
    String^ name, 
    IEdmTypeReference^ type, 
    String^ defaultValue, 
    EdmConcurrencyMode concurrencyMode
)
member AddStructuralProperty : 
        name:string * 
        type:IEdmTypeReference * 
        defaultValue:string * 
        concurrencyMode:EdmConcurrencyMode -> EdmStructuralProperty
public function AddStructuralProperty(
    name : String, 
    type : IEdmTypeReference, 
    defaultValue : String, 
    concurrencyMode : EdmConcurrencyMode
) : EdmStructuralProperty

Parameters

  • defaultValue
    Type: System.String
    The default value of this property.

Return Value

Type: Microsoft.Data.Edm.Library.EdmStructuralProperty
The created structural property.

See Also

Reference

EdmStructuredType Class

AddStructuralProperty Overload

Microsoft.Data.Edm.Library Namespace