FormatAsError Method
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Namespace: Microsoft.Build.Framework
Assembly: System.Dataflow (in System.Dataflow.dll)
'Declaration
<ExtensionAttribute> _
PublicSharedFunctionFormatAsError ( _
warningAsBuildWarningEventArgs _
) AsString
'Usage
DimwarningAsBuildWarningEventArgsDimreturnValueAsStringreturnValue = warning.FormatAsError()
publicstaticstringFormatAsError(
thisBuildWarningEventArgswarning
)
[ExtensionAttribute]
public:
staticString^ FormatAsError(
BuildWarningEventArgs^ warning
)
publicstaticfunctionFormatAsError(
warning : BuildWarningEventArgs
) : String
- warning
Type: Microsoft.Build.Framework. . :: . .BuildWarningEventArgs
Type: System. . :: . .String
In Visual Basic and C#, you can call this method as an instance method on any object of type BuildWarningEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.85) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.85).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).
BuildEventArgsExtensions Class