Class PatternDescriptor
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Patterns
Assembly: Cephalon.Abstractions.dll
Describes one pattern that can shape a Cephalon app.
public sealed class PatternDescriptorInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”PatternDescriptor(string, string, string, PatternKind, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)
Section titled “ PatternDescriptor(string, string, string, PatternKind, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”Creates a pattern descriptor.
public PatternDescriptor(string id, string displayName, string description, PatternKind kind, IReadOnlyList<string>? aliases = null, IReadOnlyList<string>? tags = null, IReadOnlyList<string>? requires = null, IReadOnlyList<string>? conflictsWith = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”id string
The stable pattern identifier.
displayName string
The human-readable pattern name.
description string
The pattern description.
kind PatternKind
The category of the pattern.
aliases IReadOnlyList<string>?
Optional aliases that can resolve to the same pattern.
tags IReadOnlyList<string>?
The tags associated with the pattern.
requires IReadOnlyList<string>?
The pattern identifiers required by this pattern.
conflictsWith IReadOnlyList<string>?
The pattern identifiers that conflict with this pattern.
metadata IReadOnlyDictionary<string, string>?
Optional pattern metadata.
Properties
Section titled “Properties”Aliases
Section titled “ Aliases”Gets optional aliases that can resolve to the same pattern.
public IReadOnlyList<string> Aliases { get; }Property Value
Section titled “Property Value”ConflictsWith
Section titled “ ConflictsWith”Gets the pattern identifiers that conflict with this pattern.
public IReadOnlyList<string> ConflictsWith { get; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Gets the pattern description.
public string Description { get; }Property Value
Section titled “Property Value”DisplayName
Section titled “ DisplayName”Gets the human-readable pattern name.
public string DisplayName { get; }Property Value
Section titled “Property Value”Gets the stable pattern identifier.
public string Id { get; }Property Value
Section titled “Property Value”Gets the category of the pattern.
public PatternKind Kind { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional pattern metadata.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Requires
Section titled “ Requires”Gets the pattern identifiers required by this pattern.
public IReadOnlyList<string> Requires { get; }Property Value
Section titled “Property Value”Gets the tags associated with the pattern.
public IReadOnlyList<string> Tags { get; }