Evidence.RemoveType(Type) Evidence.RemoveType(Type) Evidence.RemoveType(Type) Evidence.RemoveType(Type) Method

定義

特定の型の証拠をホストおよびアセンブリ列挙から削除します。Removes the evidence for a given type from the host and assembly enumerations.

public:
 void RemoveType(Type ^ t);
[System.Runtime.InteropServices.ComVisible(false)]
public void RemoveType (Type t);
member this.RemoveType : Type -> unit
Public Sub RemoveType (t As Type)

パラメーター

t
Type Type Type Type

削除する証拠の型。The type of the evidence to be removed.

例外

次のコード例の使用を示しています、RemoveTypeメソッド。The following code example shows the use of the RemoveType method. この例が示されている例の一部、Evidenceクラス。This example is part of a larger example provided for the Evidence class.

Console::WriteLine( "\nRemove URL evidence." );
myEvidence->RemoveType( url->GetType() );
Console::WriteLine( "Evidence count is now: {0}", myEvidence->Count );
Console.WriteLine("\nRemove URL evidence.");
myEvidence.RemoveType(url.GetType());
Console.WriteLine("Evidence count is now: " + myEvidence.Count.ToString());
Console.WriteLine(ControlChars.Lf & "Remove URL evidence.")
myEvidence.RemoveType(url.GetType())
Console.WriteLine(("Evidence count is now: " & myEvidence.Count.ToString()))

注釈

実行の結果、RemoveTypeメソッドを使用して確認できる、GetAssemblyEnumeratorメソッドとGetHostEnumeratorメソッド。The results of executing the RemoveType method can be confirmed using the GetAssemblyEnumerator method and the GetHostEnumerator method.

セキュリティ

SecurityPermission
証拠を制御する機能。for the ability to control evidence. セキュリティ アクション:Demandします。Security action: Demand. 関連付けられた列挙体。 ControlEvidenceAssociated enumeration: ControlEvidence

適用対象