Condividi tramite


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.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public MustInherit Class ExpressionNode
'Utilizzo
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

Nel tipo ExpressionNode sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo protetto ExpressionNode Initializes a new instance of the ExpressionNode class.

In alto

Proprietà

  Nome Descrizione
Proprietà protetta LastEvaluationResult Gets or sets the result of the last evaluation.
Proprietà pubblica Tag Gets the tag text that is associated with the expression node.
Proprietà pubblica Type Gets the type of expression node.
Proprietà pubblica TypeClass Gets the class type when the expression node represents a constant value or a variable.

In alto

Metodi

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

In alto

Osservazioni

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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.