TransformerInfoCollection.Remove(String) 方法

定义

从集合中移除带有传递的 TransformerInfo 属性的 Name 对象。Removes the TransformerInfo object with the passed Name property value from the collection.

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

参数

s
String

要从集合中移除的 TransformerInfo 对象的名称。The name of a TransformerInfo object to remove from the collection.

示例

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

// Remove a TransformerInfo object by name.
webPartsSection.Transformers.Remove("RowToFilterTransformer");

' Remove a TransformerInfo object by name.
webPartsSection.Transformers.Remove("RowToFilterTransformer")

注解

此方法 TransformerInfo 从集合中移除对象,如果 TransformerInfo 对象是在更高级别配置文件中定义的,则将一个 remove 元素插入到 transformers 配置文件的节的集合中 webPartsThis method removes a TransformerInfo object from the collection and, if the TransformerInfo object is defined in a higher-level configuration file, inserts a remove element into the transformers collection of the webParts section of the configuration file.

适用于

另请参阅