CodeDomDocDataAdapter.GetService Method
Gets the service of the specified type.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Protected Function GetService ( _
serviceType As Type _
) As Object
protected Object GetService(
Type serviceType
)
protected:
Object^ GetService(
Type^ serviceType
)
member GetService :
serviceType:Type -> Object
protected function GetService(
serviceType : Type
) : Object
Parameters
- serviceType
Type: System.Type
The type of the service to get.
Return Value
Type: System.Object
The object representing the specified service, or nulla null reference (Nothing in Visual Basic) if none is available.
.NET Framework Security
- 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.
See Also
Reference
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace