Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Trace Class
Trace Methods
WriteIf Method
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Trace..::.WriteIf Method

Writes information about the trace to the trace listeners in the Listeners collection if a condition is true.

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteIf(Boolean, Object)Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteIf(Boolean, String)Writes a message to the trace listeners in the Listeners collection if a condition is true.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteIf(Boolean, Object, String)Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteIf(Boolean, String, String)Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker