UndoEngine.GetRequiredService Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the requested service.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

protected object GetRequiredService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service to retrieve.

Return Value

Type: System.Object

The requested service, if found.

Exception Condition
ArgumentNullException

serviceType is null.

NotSupportedException

serviceType is required but cannot be found. If you have removed this service, ensure that you provide a replacement.

.NET Framework
Available since 2.0
Return to top
Show: