TraceListenerCollection.Contains(TraceListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks whether the list contains the specified listener.
public:
bool Contains(System::Diagnostics::TraceListener ^ listener);
public bool Contains (System.Diagnostics.TraceListener? listener);
public bool Contains (System.Diagnostics.TraceListener listener);
member this.Contains : System.Diagnostics.TraceListener -> bool
Public Function Contains (listener As TraceListener) As Boolean
Parameters
- listener
- TraceListener
A TraceListener to find in the list.
Returns
true
if the listener is in the list; otherwise, false
.
Remarks
The Contains method can confirm the existence of a TraceListener before you perform further operations.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.