Share via


ApplicationManager.StopObject(String, Type) 方法

定義

從應用程式的註冊物件清單中移除指定的物件。 如果要移除的物件是應用程式之已註冊物件清單中的最後一個剩餘物件,則會卸載該應用程式。

public:
 void StopObject(System::String ^ appId, Type ^ type);
public void StopObject (string appId, Type type);
member this.StopObject : string * Type -> unit
Public Sub StopObject (appId As String, type As Type)

參數

appId
String

應用程式的唯一識別項,該應用程式擁有物件。

type
Type

要卸載的物件型別。

例外狀況

appIdnull

-或-

typenull

適用於