2008-03-05 09:52:00 -05:00
|
|
|
// ==++==
|
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
// ==--==
|
|
|
|
using System;
|
|
|
|
|
2008-11-17 18:29:00 -05:00
|
|
|
namespace System.Diagnostics
|
|
|
|
{
|
2008-03-05 09:52:00 -05:00
|
|
|
//| <include path='docs/doc[@for="ConditionalAttribute"]/*' />
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple=true)]
|
|
|
|
public sealed class ConditionalAttribute : Attribute
|
|
|
|
{
|
|
|
|
//| <include path='docs/doc[@for="ConditionalAttribute.ConditionalAttribute"]/*' />
|
|
|
|
public ConditionalAttribute(String conditionString)
|
|
|
|
{
|
|
|
|
m_conditionString = conditionString;
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include path='docs/doc[@for="ConditionalAttribute.ConditionString"]/*' />
|
|
|
|
public String ConditionString {
|
|
|
|
get {
|
|
|
|
return m_conditionString;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private String m_conditionString;
|
|
|
|
}
|
|
|
|
}
|