Partager via


Classe ExpressionNode

The ExpressionNode object represents a policy-based management expression node. The expression node describes part of an expression, such as a constant value, an operator, or a function.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Dmf.ExpressionNode
    Microsoft.SqlServer.Management.Dmf.ExpressionNodeAttribute
    Microsoft.SqlServer.Management.Dmf.ExpressionNodeChildren
    Microsoft.SqlServer.Management.Dmf.ExpressionNodeConstant

Espace de noms :  Microsoft.SqlServer.Management.Dmf
Assembly :  Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)

Syntaxe

'Déclaration
<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public MustInherit Class ExpressionNode
'Utilisation
Dim instance As ExpressionNode
[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public abstract class ExpressionNode
[StrongNameIdentityPermissionAttribute(SecurityAction::InheritanceDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class ExpressionNode abstract
[<AbstractClassAttribute>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type ExpressionNode =  class end
public abstract class ExpressionNode

Le type ExpressionNode expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée ExpressionNode Initializes a new instance of the ExpressionNode class.

Haut de la page

Propriétés

  Nom Description
Propriété protégée LastEvaluationResult Gets or sets the result of the last evaluation.
Propriété publique Tag Gets the tag text that is associated with the expression node.
Propriété publique Type Gets the type of expression node.
Propriété publique TypeClass Gets the class type when the expression node represents a constant value or a variable.

Haut de la page

Méthodes

  Nom Description
Méthode publiqueMembre statique ConstructNode Creates a new expression node.
Méthode publiqueMembre statique ConvertFromFilterNode(FilterNode) Creates a new expression node by converting a filter node.
Méthode publiqueMembre statique ConvertFromFilterNode(FilterNode, Type) Creates a new expression node by converting a filter node.
Méthode protégéeMembre statique ConvertFromString Converts a type from a string value.
Méthode publique ConvertToFilterNode Creates a filter node by converting the expression node.
Méthode protégéeMembre statique ConvertToIntWithCheck Converts the specified string to an integer.
Méthode protégéeMembre statique ConvertToString Converts a type to a string value.
Méthode publique DeepClone Creates a copy of the referenced object. This includes all its properties.
Méthode publiqueMembre statique Deserialize(String) Deserializes an expression node from a string.
Méthode publiqueMembre statique Deserialize(XmlReader) Deserializes an expression node from an XML reader.
Méthode protégée DeserializeProperties Deserializes the properties in the expression from an XML reader.
Méthode protégée DeserializeResult Deserializes the property results in the expression from an XML reader.
Méthode publiqueMembre statique DeserializeWithResult Deserializes the expression node from a text string.
Méthode protégée DoConvertToFilterNode Allows the conversion of expression node to filter mode.
Méthode protégée DoEnumAttributes Deserializes the expression node from a list of text strings.
Méthode publique EnumChildren Returns an enumerated list of dependent expression nodes.
Méthode protégée EqualProperties Determines whether the properties of the specified object are equal to the properties of the current expression node.
Méthode publique Equals Returns a Boolean value that specifies whether the referenced expression node object is equal to the specified object. (remplace Object.Equals(Object).)
Méthode publique Evaluate(FacetEvaluationContext) Evaluates the expression node with the given facet context.
Méthode publique Evaluate(FacetEvaluationContext, Boolean) Evaluates the expression node with the given facet context and checks the script as a proxy.
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode Gets the hash code for the object. (remplace Object.GetHashCode().)
Méthode publique GetResult Gets the result that is returned when an expression is deserialized.
Méthode publique GetResultString Gets the result in string format that is returned when an expression is deserialized.
Méthode publique GetType (hérité de Object.)
Méthode publiqueMembre statique MatchType<T> Indicates the type of match to be used in the node.
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégéeMembre statique MoveToElementWithCheck Moves the reader to the element with check.
Méthode publiqueMembre statique Parse(String) Parses the specified expression string.
Méthode publiqueMembre statique Parse(String, Type) Parses the specified string.
Méthode protégéeMembre statique ReadElementWithCheck Reads a named serialized element using the XML Reader and returns the value.
Méthode protégée ReadEndElement Reads the end element in the expression node.
Méthode protégéeMembre statique ReadNodeWithCheck Reads the specified node with a checkmark.
Méthode protégéeMembre statique ReadSimpleNodeWithCheck Reads the specified elements, evaluated with the given expression node type, and read with the specified XML reader.
Méthode protégéeMembre statique ReadWithCheck Reads the expression node using the XML Reader.
Méthode protégéeMembre statique ResolveEnum Resolves the enumeration conflicts encountered during the process.
Méthode publique Serialize Serializes the expression node to the specified XML Writer.
Méthode publiqueMembre statique SerializeNode Serializes the expression node to a text string.
Méthode publiqueMembre statique SerializeNodeWithResult Serializes the expression node to a text string.
Méthode protégée SerializeProperties Serializes the properties in the expression to an XML writer.
Méthode protégée SerializeResult Serializes the result in the expression node.
Méthode protégée SetFilterNodeCompatible Sets the compatible filter node of the Boolean property.
Méthode protégée SetHasScript Sets the Boolean value for the HasScript property.
Méthode protégée SetNameConditionType Sets the name of the condition type property.
Méthode protégée SetNodeType Indicates the type of node to be set.
Méthode protégée SetObjectName Sets the name of the expression node.
Méthode protégée SetProperties Sets property values.
Méthode protégée SetTypeClass Sets type class for the expression node.
Méthode publique ToString Returns the referenced object in string format. (remplace Object.ToString().)
Méthode publique ToStringForDisplay Returns the referenced object in string format for display.
Méthode publique ToStringForUrn Returns the referenced object in URN format.

Haut de la page

Notes

The expression node represents the conditional state that is applied to the facet. For example, if the facet is Database Mail, then the expression could be "is installed" or "is not installed". There are different types of expression that are individually represented using the Type property and each of these are represented in more detail with specific types, such as ExpressionNodeFunction or ExpressionNodeConstant.

Using the ExpressionNode object you can:

  • Create, modify, or delete an expression node that applies to the facet on a target object.

  • Parse the expression string to create a valid expression for the facet.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Dmf