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.

Remarks

The following Unicode characters are allowed in XML names but not in identifiers in EDM:

  1. U+00B7 '•'

  2. U+0387 '·'

  3. U+06DE '۞'

  4. 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."

See Also

Reference

ResourceProperty Class

System.Data.Services.Providers Namespace