PropertyDataCollection.Remove(String) 方法

定義

PropertyDataPropertyDataCollection 中移除。

public:
 virtual void Remove(System::String ^ propertyName);
public virtual void Remove (string propertyName);
abstract member Remove : string -> unit
override this.Remove : string -> unit
Public Overridable Sub Remove (propertyName As String)

參數

propertyName
String

要移除的屬性名稱。

備註

屬性只能從類別定義中移除,而不能從實例中移除。 只有在 中的 ManagementClass屬性集合上叫用時,這個方法才有效。

.NET Framework 安全性

完全信任立即呼叫者。 這個成員無法供部分信任的程式碼使用。 如需詳細資訊,請參閱 使用部分信任程式代碼的連結庫

適用於