Export (0) Print
Expand All

ExpressionNode Class

 

Applies To: SQL Server 2016 Preview

The T:Microsoft.SqlServer.Management.Smo.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.

Namespace:   Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)


[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, 
	PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, 
	PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public abstract class ExpressionNode

NameDescription
System_CAPS_protmethodExpressionNode()

Initializes a new instance of the ExpressionNode class.

NameDescription
System_CAPS_protpropertyLastEvaluationResult

Gets or sets the result of the last evaluation.

System_CAPS_pubpropertyTag

Gets the tag text that is associated with the expression node.

System_CAPS_pubpropertyType

Gets the type of expression node.

System_CAPS_pubpropertyTypeClass

Gets the class type when the expression node represents a constant value or a variable.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticConstructNode(Object)

Creates a new expression node.

System_CAPS_pubmethodSystem_CAPS_staticConvertFromFilterNode(FilterNode)

Creates a new expression node by converting a filter node.

System_CAPS_pubmethodSystem_CAPS_staticConvertFromFilterNode(FilterNode, Type)

Creates a new expression node by converting a filter node.

System_CAPS_protmethodSystem_CAPS_staticConvertFromString(String, String)

Converts a type from a string value.

System_CAPS_pubmethodConvertToFilterNode()

Creates a filter node by converting the expression node.

System_CAPS_protmethodSystem_CAPS_staticConvertToIntWithCheck(String)

Converts the specified string to an integer.

System_CAPS_protmethodSystem_CAPS_staticConvertToString(Object)

Converts a type to a string value.

System_CAPS_pubmethodDeepClone()

Creates a copy of the referenced object. This includes all its properties.

System_CAPS_pubmethodSystem_CAPS_staticDeserialize(String)

Deserializes an expression node from a string.

System_CAPS_pubmethodSystem_CAPS_staticDeserialize(XmlReader)

Deserializes an expression node from an XML reader.

System_CAPS_protmethodDeserializeProperties(XmlReader, Boolean)

Deserializes the properties in the expression from an XML reader.

System_CAPS_protmethodDeserializeResult(XmlReader)

Deserializes the property results in the expression from an XML reader.

System_CAPS_pubmethodSystem_CAPS_staticDeserializeWithResult(String)

Deserializes the expression node from a text string.

System_CAPS_protmethodDoConvertToFilterNode()

Allows the conversion of expression node to filter mode.

System_CAPS_protmethodDoEnumAttributes(List<String>)

Deserializes the expression node from a list of text strings.

System_CAPS_pubmethodEnumChildren()

Returns an enumerated list of dependent expression nodes.

System_CAPS_protmethodEqualProperties(Object)

Determines whether the properties of the specified object are equal to the properties of the current expression node.

System_CAPS_pubmethodEquals(Object)

Returns a Boolean value that specifies whether the referenced expression node object is equal to the specified object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodEvaluate(FacetEvaluationContext)

Evaluates the expression node with the given facet context.

System_CAPS_pubmethodEvaluate(FacetEvaluationContext, Boolean)

Evaluates the expression node with the given facet context and checks the script as a proxy.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetResult()

Gets the result that is returned when an expression is deserialized.

System_CAPS_pubmethodGetResultString()

Gets the result in string format that is returned when an expression is deserialized.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMatchType<T>(String)

Indicates the type of match to be used in the node.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticMoveToElementWithCheck(XmlReader, String)

Moves the reader to the element with check.

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Parses the specified expression string.

System_CAPS_pubmethodSystem_CAPS_staticParse(String, Type)

Parses the specified string.

System_CAPS_protmethodSystem_CAPS_staticReadElementWithCheck(XmlReader, String)

Reads a named serialized element using the XML Reader and returns the value.

System_CAPS_protmethodReadEndElement(XmlReader)

Reads the end element in the expression node.

System_CAPS_protmethodSystem_CAPS_staticReadNodeWithCheck(XmlReader, String[])

Reads the specified node with a checkmark.

System_CAPS_protmethodSystem_CAPS_staticReadSimpleNodeWithCheck(XmlReader, ExpressionNodeType, String[])

Reads the specified elements, evaluated with the given expression node type, and read with the specified XML reader.

System_CAPS_protmethodSystem_CAPS_staticReadWithCheck(XmlReader, XmlNodeType, String)

Reads the expression node using the XML Reader.

System_CAPS_protmethodSystem_CAPS_staticResolveEnum(String, String)

Resolves the enumeration conflicts encountered during the process.

System_CAPS_pubmethodSerialize(XmlWriter)

Serializes the expression node to the specified XML Writer.

System_CAPS_pubmethodSystem_CAPS_staticSerializeNode(ExpressionNode)

Serializes the expression node to a text string.

System_CAPS_pubmethodSystem_CAPS_staticSerializeNodeWithResult(ExpressionNode)

Serializes the expression node to a text string.

System_CAPS_protmethodSerializeProperties(XmlWriter, Boolean)

Serializes all properties for the specified object, using the specified XML writer.

System_CAPS_protmethodSerializeResult(XmlWriter)

Serializes the result in the expression node.

System_CAPS_protmethodSetFilterNodeCompatible(Boolean)

Sets the compatible filter node of the Boolean property.

System_CAPS_protmethodSetHasScript(Boolean)

Sets the Boolean value for the HasScript property.

System_CAPS_protmethodSetNameConditionType(NameConditionType)

Sets the name of the condition type property.

System_CAPS_protmethodSetNodeType(ExpressionNodeType)

Indicates the type of node to be set.

System_CAPS_protmethodSetObjectName(String)

Sets the name of the expression node.

System_CAPS_protmethodSetProperties()

Sets property values.

System_CAPS_protmethodSetTypeClass(TypeClass)

Sets type class for the expression node.

System_CAPS_pubmethodToString()

Returns the referenced object in string format.(Overrides Object.ToString().)

System_CAPS_pubmethodToStringForDisplay()

Returns the referenced object in string format for display.

System_CAPS_pubmethodToStringForUrn()

Returns the referenced object in URN format.

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 P:Microsoft.SqlServer.Management.Smo.ExpressionNode.Type property and each of these are represented in more detail with specific types, such as T:Microsoft.SqlServer.Management.Smo.ExpressionNodeFunction or T:Microsoft.SqlServer.Management.Smo.ExpressionNodeConstant.

Using the T:Microsoft.SqlServer.Management.Smo.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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft