EdmStructuredType.AddStructuralProperty Method (String, EdmPrimitiveTypeKind)
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 _
) As EdmStructuralProperty
'Usage
Dim instance As EdmStructuredType
Dim name As String
Dim type As EdmPrimitiveTypeKind
Dim returnValue As EdmStructuralProperty
returnValue = instance.AddStructuralProperty(name, _
type)
public EdmStructuralProperty AddStructuralProperty(
string name,
EdmPrimitiveTypeKind type
)
public:
EdmStructuralProperty^ AddStructuralProperty(
String^ name,
EdmPrimitiveTypeKind type
)
member AddStructuralProperty :
name:string *
type:EdmPrimitiveTypeKind -> EdmStructuralProperty
public function AddStructuralProperty(
name : String,
type : EdmPrimitiveTypeKind
) : EdmStructuralProperty
Parameters
- name
Type: System.String
Name of the property.
- type
Type: Microsoft.Data.Edm.EdmPrimitiveTypeKind
Type of the property.
Return Value
Type: Microsoft.Data.Edm.Library.EdmStructuralProperty
Created structural property.