mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-04-22 23:15:59 +00:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
namespace DSInternals.PowerShell.Commands
|
|
{
|
|
using System.Management.Automation;
|
|
|
|
public abstract class ADDBModifyPrincipalCommandBase : ADDBPrincipalCommandBase
|
|
{
|
|
[Parameter(Mandatory = false)]
|
|
[Alias("SkipMeta", "NoMetaUpdate", "NoMeta", "SkipObjMeta", "NoObjMeta", "SkipMetaDataUpdate", "NoMetaDataUpdate")]
|
|
public SwitchParameter SkipMetaUpdate
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
protected override bool ReadOnly
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
protected void WriteVerboseResult(bool hasChanged)
|
|
{
|
|
if (hasChanged)
|
|
{
|
|
// TODO: Extract as resource:
|
|
this.WriteVerbose("The object has been updated successfully.");
|
|
}
|
|
else
|
|
{
|
|
// TODO: Extract as resource:
|
|
this.WriteVerbose("The object already contained the value to be added.");
|
|
}
|
|
}
|
|
}
|
|
} |