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
selectorString
Type: System.StringThe string representation of a WebPartAdder.Selector.
selector
Type: Microsoft.SharePoint.WebPartPages.WebPartAdder.SelectorWhen this method returns, contains the WebPartAdder.Selector structure that is equivalent to the selector string contained in the selectorString. This parameter is passed uninitialized.
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.