OutputCacheProfileCollection.Remove(String) 메서드

정의

컬렉션에서 OutputCacheProfile 지정된 이름의 개체를 제거합니다.

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

매개 변수

name
String

컬렉션에서 제거할 요소의 OutputCacheProfile 이름입니다.

예외

컬렉션에 지정된 키를 가진 개체가 없거나 OutputCacheProfile 요소가 이미 제거되었거나 컬렉션이 읽기 전용입니다.

예제

다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 Remove .

// Remove the output profile with the specified name.
outputCacheProfiles.Remove("MyCacheProfile");
' Remove the output profile with the specified name.
  outputCacheProfiles.Remove("MyCacheProfile")

설명

이 메서드는 Remove 상위 수준 구성 파일에 정의된 요소에 대한 구성 파일의 적절한 섹션에 요소를 삽입 remove 합니다. 요소가 현재 구성 파일의 적절한 섹션에 정의된 경우 해당 항목은 구성 파일에서 제거됩니다. 제거할 개체가 컬렉션에 있어야 합니다.

적용 대상

추가 정보