XdmType.ProcessingInstruction Method (string)XdmType.ProcessingInstruction Method (String)XdmType::ProcessingInstruction Method (String^)

Returns an XdmTypeXdmTypeXdmType instance corresponding to the processing instruction type with the specified target.

Syntax

Public Shared Function ProcessingInstruction( _
    target As String _
) As XdmType
public static XdmType ProcessingInstruction(
    string target
)
public:
static XdmType^ ProcessingInstruction(
    String^ target
)
 

Parameters

target

Type: System.StringSystem.StringSystem::String^

The target of processing instructions matching this type, or null a null reference (Nothing in Visual Basic) nullptr for a type matching all processing instructions.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

An XdmTypeXdmTypeXdmType instance representing the processing instruction type with the specified target.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptiontarget is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptiontarget is not a valid xs:NCName value.

Remarks

This corresponds to the XPath 2.0 type processing-instruction( ), or processing-instruction() if target is null a null reference (Nothing in Visual Basic) nullptr.