C# 使用附加属性扩展Windows属性处理程序
我使用的是SSLWare的EZShellExtensions.NETV2011,它们支持属性处理程序,但代码的工作方式与我希望的不同 我想为docx xlsx文件扩展名的属性处理程序添加几个新属性,但我的代码删除了所有默认属性 有没有办法通过EZShellExtensions添加其他属性?或者我必须使用C++?< /P> 示例代码:C# 使用附加属性扩展Windows属性处理程序,c#,winapi,shell-extensions,C#,Winapi,Shell Extensions,我使用的是SSLWare的EZShellExtensions.NETV2011,它们支持属性处理程序,但代码的工作方式与我希望的不同 我想为docx xlsx文件扩展名的属性处理程序添加几个新属性,但我的代码删除了所有默认属性 有没有办法通过EZShellExtensions添加其他属性?或者我必须使用C++?< /P> 示例代码: [TargetExtension(".docx", true)] [TargetExtension(".xlsx", true)] [TargetExtension
[TargetExtension(".docx", true)]
[TargetExtension(".xlsx", true)]
[TargetExtension(".xlsm", true)]
public class PropertyHandler4 : PropertyHandler
{
public PropertyHandler4()
{
}
protected override Property[] GetProperties()
{
// TODO : Write your code here.
// Defines two properties for a file
UserDefinedProperty prop = new UserDefinedProperty("MyProperty1");
prop.Description = "My Property1";
prop.LabelText = "My Property1";
UserDefinedProperty prop1 = new UserDefinedProperty("MyProperty2");
prop1.Description = "My Property2";
prop1.LabelText = "My Property2";
return new Property[] { prop, prop1 };
}
// Override this method to retrieve the value of the specified property.
protected override object GetPropertyValue(Property property)
{
return "WUZZAP!";
}
这不是EZShellExtensions.lol的支持站点,wtf是您的问题吗?那你为什么不告诉我这个网站是做什么用的?也许对你有帮助。