SupportsPreviewControlAttribute.IsDefaultAttribute 方法

定义

指示 SupportsPreviewControlAttribute 类的当前实例是否设置为默认的预览特性值。Indicates whether the current instance of the SupportsPreviewControlAttribute class is set to the default preview attribute value.

public:
 override bool IsDefaultAttribute();
public override bool IsDefaultAttribute ();
override this.IsDefaultAttribute : unit -> bool
Public Overrides Function IsDefaultAttribute () As Boolean

返回

Boolean

如果 SupportsPreviewControlAttribute 的当前实例等于默认预览特性值,则为 true;否则为 falsetrue if the current instance of SupportsPreviewControlAttribute is equal to the default preview attribute value; otherwise, false.

注解

IsDefaultAttribute方法将 SupportsPreviewControl 当前对象的属性的值 SupportsPreviewControlAttributeSupportsPreviewControl 静态字段的属性的值进行比较 DefaultThe IsDefaultAttribute method compares the value for the SupportsPreviewControl property of the current SupportsPreviewControlAttribute object with the value for the SupportsPreviewControl property of the static Default field.

适用于

另请参阅