次の方法で共有


ServiceDescriptor.KeyedImplementationInstance Property

Definition

Gets the instance that implements the service, or throws InvalidOperationException if IsKeyedService is false.

public:
 property System::Object ^ KeyedImplementationInstance { System::Object ^ get(); };
public object? KeyedImplementationInstance { get; }
member this.KeyedImplementationInstance : obj
Public ReadOnly Property KeyedImplementationInstance As Object

Property Value

Remarks

If IsKeyedService is false, ImplementationInstance should be called instead.

Applies to