提供 ProvideDesignerLoaderAttribute的新实例。
命名空间: Microsoft.VisualStudio.Shell.Design.Serialization
程序集: Microsoft.VisualStudio.Shell.Design(在 Microsoft.VisualStudio.Shell.Design.dll 中)
语法
声明
Public Sub New ( _
scope As AttributeScope, _
scopeData As Object _
)
public ProvideDesignerLoaderAttribute(
AttributeScope scope,
Object scopeData
)
参数
- scope
类型:Microsoft.VisualStudio.Shell.Design.AttributeScope
枚举 AttributeScope 的值是 Language 和 File。
- scopeData
类型:System.Object
scope 的值。逻辑内部给方法将该文件视为 string。
备注
提供一个设计器加载程序对特定文件扩展名。使用此构造函数可以限制设计器加载程序只与给定文件扩展名一起使用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。