Gets the service object of the specified type, if it is available.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
GetService returns a Object implementing the requested service, or a null reference (Nothing) if the service cannot be resolved.
The following example uses the method of the WorkflowView object to return an ISelectionService interface. If the service exists, EnsureVisible is called passing the currently selected activity using the PrimarySelection property of the ISelectionService object.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.