PolicyContext.WriteToTrace Method (String)
Writes policy trace information when policy tracing is enabled, using the specified message.
Namespace: Microsoft.Web.Services2.Policy
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim s As String
Dim policyContext1 As PolicyContext
policyContext1.WriteToTrace(s)
Syntax
'Declaration
Overloads Public Sub WriteToTrace( _
ByVal s As String _
)
public void WriteToTrace(
string s
);
public: Void WriteToTrace(
String^ s
);
public void WriteToTrace(
System.String s
);
public function WriteToTrace(
s : String
);
Parameters
- s
The message to be written to the policy trace.
Remarks
Policy tracing is enabled when the enabled attribute of the <policyTrace> element in the configuration file is set to true.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
PolicyContext Class
Microsoft.Web.Services2.Policy Namespace