Version

ParseSelItemArgToList<T> Method

Parses a given string argument into a list of items of the specified type T
Syntax
'Declaration
 
Protected Function ParseSelItemArgToList(Of T)( _
   ByVal sArg As System.String, _
   ByVal bValidate As System.Boolean _
) As System.Collections.Generic.List(Of T)
protected System.Collections.Generic.List<T> ParseSelItemArgToList<T>( 
   System.string sArg,
   System.bool bValidate
)
protected: System.Collections.Generic.List<T*>* ParseSelItemArgToList<T>( 
   System.string* sArg,
   System.bool bValidate
) 

Parameters

sArg
The input string argument which needs to be parsed and converted to the lsit
bValidate
Boolean of true validates the input string argument and throws exceptions for invalid inputs

Type Parameters

T
Type of the item to be added to the final list

Return Value

A list of items of the specified type T obtained after parsing and converting the input string argument
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also