IValidationRuleViolation.Code 屬性
取得與驗證違規關聯的錯誤碼。
命名空間: Microsoft.VisualStudio.SharePoint.Validation
組件: Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)
語法
'宣告
ReadOnly Property Code As String
string Code { get; }
屬性值
型別:System.String
表示錯誤碼的字串。
備註
這個屬性永遠都應該有值。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。