ResourceProperty Constructor
Initializes a new ResourceProperty for an open property.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
kind As ResourcePropertyKind, _
propertyResourceType As ResourceType _
)
'Usage
Dim name As String
Dim kind As ResourcePropertyKind
Dim propertyResourceType As ResourceType
Dim instance As New ResourceProperty(name, kind, _
propertyResourceType)
public ResourceProperty(
string name,
ResourcePropertyKind kind,
ResourceType propertyResourceType
)
public:
ResourceProperty(
String^ name,
ResourcePropertyKind kind,
ResourceType^ propertyResourceType
)
new :
name:string *
kind:ResourcePropertyKind *
propertyResourceType:ResourceType -> ResourceProperty
public function ResourceProperty(
name : String,
kind : ResourcePropertyKind,
propertyResourceType : ResourceType
)
Parameters
- name
Type: System.String
Property name for the property as string.
- propertyResourceType
Type: System.Data.Services.Providers.ResourceType
The ResourceType of the resource to which the property refers.
Remarks
The following Unicode characters are allowed in XML names but not in identifiers in EDM:
U+00B7 '•'
U+0387 '·'
U+06DE '۞'
U+212E '℮'
If your property names can contain these characters, make sure that they are escaped properly in your provider implementation. The EncodeName(String) method will not properly escape these invalid EDM characters."