Επεξεργασία

Κοινή χρήση μέσω


ResourceProperty(String, ResourcePropertyKind, ResourceType) Constructor

Definition

Initializes a new ResourceProperty for an open property.

public:
 ResourceProperty(System::String ^ name, System::Data::Services::Providers::ResourcePropertyKind kind, System::Data::Services::Providers::ResourceType ^ propertyResourceType);
public ResourceProperty (string name, System.Data.Services.Providers.ResourcePropertyKind kind, System.Data.Services.Providers.ResourceType propertyResourceType);
new System.Data.Services.Providers.ResourceProperty : string * System.Data.Services.Providers.ResourcePropertyKind * System.Data.Services.Providers.ResourceType -> System.Data.Services.Providers.ResourceProperty
Public Sub New (name As String, kind As ResourcePropertyKind, propertyResourceType As ResourceType)

Parameters

name
String

Property name for the property as string.

propertyResourceType
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:

  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 method will not properly escape these invalid EDM characters."

Applies to