我通過stsadm工具禁用功能。我爲此操作啓用了事件接收器。如果我從站點手動停用該功能,則會觸發事件,但不會在運行stsadm命令時觸發。通過命令行禁用功能不會觸發SPFeature事件接收器
請幫助...
下面是代碼維爾託德:
public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
{
Logging.Log(_componentName, "The document library feature has deactivated successfully.");
}
它使用powershell時執行嗎? – Shaneo 2011-05-05 13:07:21
是的,我嘗試過使用powershell,結果相同... – Shankar 2011-05-05 13:12:38