C# Class Sdl.Web.Common.Mapping.FieldSemantics

Class for deserialized json field semantics. {"Prefix":"s","Entity":"Article","Property":"headline"}
Inheritance: SchemaSemantics
Afficher le fichier Open project: sdl/dxa-web-application-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool

Determines whether the specified object is equal to the current FieldSemantics.

FieldSemantics ( ) : System

Initializes a new empty instance of the FieldSemantics class.

Used by JSON deserializer.

FieldSemantics ( string prefix, string entity, string property, Localization localization ) : System

Initializes a new instance of the FieldSemantics class.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string

Provides a string representation of the object.

Private Methods

Méthode Description
FieldSemantics ( string entity, string property ) : System
FieldSemantics ( string prefix, string entity, string property ) : System

Method Details

Equals() public méthode

Determines whether the specified object is equal to the current FieldSemantics.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Résultat bool

FieldSemantics() public méthode

Initializes a new empty instance of the FieldSemantics class.
Used by JSON deserializer.
public FieldSemantics ( ) : System
Résultat System

FieldSemantics() public méthode

Initializes a new instance of the FieldSemantics class.
public FieldSemantics ( string prefix, string entity, string property, Localization localization ) : System
prefix string Vocabulary prefix
entity string Entity name
property string Semantic property name
localization Localization The context Localization (used to determine the semantic Vocabulary URI).
Résultat System

GetHashCode() public méthode

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Résultat int

ToString() public méthode

Provides a string representation of the object.
public ToString ( ) : string
Résultat string