我試圖簡化從屬性提取數據的代碼。 屬性: [AttributeUsage(AttributeTargets.Property)]
class NameAttribute : Attribute
{
public string Name { get; }
public ColumnAttribute(string name)
{
Name = name
該命令Set-ItemPropertyhas a dynamic parameter named Type that is important for the Windows registry。調用Get-Help Set-ItemProperty沒有提及Type參數。我認爲發生這種遺漏,因爲Type是一個動態參數。 我想發現Type參數的屬性。特別是,我想知道是否設置了ValueFromPipe