ערוך

שתף באמצעות


ParameterXPathQueryGenerator.CreateFromDataContractSerializer Method

Definition

Creates an XPath using the specified operation name, parameter name, and data contract information.

public:
 static System::String ^ CreateFromDataContractSerializer(System::Xml::Linq::XName ^ serviceContractName, System::String ^ operationName, System::String ^ parameterName, bool isReply, Type ^ type, cli::array <System::Reflection::MemberInfo ^> ^ pathToMember, [Runtime::InteropServices::Out] System::Xml::XmlNamespaceManager ^ % namespaces);
public static string CreateFromDataContractSerializer (System.Xml.Linq.XName serviceContractName, string operationName, string parameterName, bool isReply, Type type, System.Reflection.MemberInfo[] pathToMember, out System.Xml.XmlNamespaceManager namespaces);
static member CreateFromDataContractSerializer : System.Xml.Linq.XName * string * string * bool * Type * System.Reflection.MemberInfo[] * XmlNamespaceManager -> string
Public Shared Function CreateFromDataContractSerializer (serviceContractName As XName, operationName As String, parameterName As String, isReply As Boolean, type As Type, pathToMember As MemberInfo(), ByRef namespaces As XmlNamespaceManager) As String

Parameters

serviceContractName
XName

The name of the service contract XML element that contains the service contract namespace.

operationName
String

The name of the service operation.

parameterName
String

The name of the service operation parameter.

isReply
Boolean

true to indicate that the service operation is a response; otherwise, false.

type
Type

The data contract.

pathToMember
MemberInfo[]

The metadata, generated using the GetMember(String) method of the Type class, which points to the specific data member used to generated the query.

namespaces
XmlNamespaceManager

When this method returns, contains the XML namespaces and their prefixes found in the data contract. Instantiate this parameter before passing it in this method.

Returns

The XPath generated from the specified operation name, parameter name, and data contract information.

Applies to