Condividi tramite


WebPartAdder.Selector.TryParse Method

Converts the string representation of a selector to the equivalent WebPartAdder.Selector structure.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function TryParse ( _
    selectorString As String, _
    <OutAttribute> ByRef selector As WebPartAdder.Selector _
) As Boolean
'Usage
Dim selectorString As String
Dim selector As WebPartAdder.Selector
Dim returnValue As Boolean

returnValue = WebPartAdder.Selector.TryParse(selectorString, _
    selector)
public static bool TryParse(
    string selectorString,
    out WebPartAdder.Selector selector
)

Parameters

Return Value

Type: System.Boolean

Remarks

The selector is initialized by the WebPartAdder.Selector(Boolean, String, String) constructor if the conversion is successful; otherwise, it is initialized by the default constructor.

See Also

Reference

WebPartAdder.Selector Structure

WebPartAdder.Selector Members

Microsoft.SharePoint.WebPartPages Namespace