DevForce Help Reference
ProjectionSelector Constructor(String,String)
Example 


Create a ProjectionSelector for the specified property path.
Syntax
'Declaration
 
Public Function New( _
   ByVal propertyPath As String, _
   Optional ByVal alias As String _
)
'Usage
 
Dim propertyPath As String
Dim alias As String
 
Dim instance As New ProjectionSelector(propertyPath, alias)
public ProjectionSelector( 
   string propertyPath,
   string alias
)

Parameters

propertyPath
alias
Example
public void DynamicAnonQuery() {
  var ps1 = new ProjectionSelector("Id");
  var ps2 = new ProjectionSelector("CompanyName");
  var allps = ProjectionSelector.Combine(new[] {ps1, ps2});

  var query = manager.Customers.Select(allps);
  var anonItems = query.Execute();
}
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

Reference

ProjectionSelector Class
ProjectionSelector Members
Overload List

Send Feedback