BuildProviderCollection.Remove(String) 方法

定义

BuildProvider 中删除 BuildProviderCollection 对象。Removes a BuildProvider object from the BuildProviderCollection.

public:
 void Remove(System::String ^ name);
public void Remove (string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

参数

name
String

指定 BuildProvider 引用的字符串值。A string value specifying the BuildProvider reference.

示例

下面的代码示例演示如何使用 Remove 方法。The following code example demonstrates how to use the Remove method. 此代码示例是为类提供的更大示例的一部分 BuildProviderCollectionThis code example is part of a larger example provided for the BuildProviderCollection class.

// Remove a BuildProvider.
configSection.BuildProviders.Remove(".myres2");
' Remove an BuildProvider.
configSection.BuildProviders.Remove(".myres2")

注解

如果 BuildProvider 集合中不存在,则忽略生成提供程序。If the BuildProvider does not exist in the collection, the build provider is ignored.

适用于