Source.GetSource method
Creates a Source object.
Namespace: Microsoft.Office.Server.Discovery
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Public Shared Function GetSource ( _
currentCase As Case, _
sourceType As SourceType, _
filter As String _
) As Source
'Usage
Dim currentCase As Case
Dim sourceType As SourceType
Dim filter As String
Dim returnValue As Source
returnValue = Source.GetSource(currentCase, _
sourceType, filter)
public static Source GetSource(
Case currentCase,
SourceType sourceType,
string filter
)
Parameters
currentCase
Type: Microsoft.Office.Server.Discovery.CaseIdentifies the Case object used by this Source object.
sourceType
Type: Microsoft.Office.Server.Discovery.SourceTypeSpecifies the type of source associated with this Source object.
filter
Type: System.StringA partial or complete query of the container that identifies this Source object.
Return value
Type: Microsoft.Office.Server.Discovery.Source
A Source object containing the values for the specified parameters.
Remarks
Throws an exception if a valid source cannot be created by using the supplied parameters.