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