共用方式為


InvalidMetadataObjectException Members

Include Protected Members
Include Inherited Members

Thrown when a metadata object instance containing invalid or corrupt fields is encountered.

The InvalidMetadataObjectException type exposes the following members.

Constructors

  Name Description
Public method InvalidMetadataObjectException() Initializes a new instance of the class.
Public method InvalidMetadataObjectException(String) Initializes a new instance of the class with a specified error message.
Protected method InvalidMetadataObjectException(SerializationInfo, StreamingContext) Initializes a new instance of the class with serialized data and streaming context.
Public method InvalidMetadataObjectException(String, Exception) Initializes a new instance of the class with a specified error message and a reference to the inner exception that caused this exception.
Public method InvalidMetadataObjectException(UInt32, String, String, Type) Initializes a new instance of the class with the specified metadata object ID, the metadata object name, the field name, and the metadata object type.
Public method InvalidMetadataObjectException(String, UInt32, String, String, Type) Initializes a new instance of the class with the specified error message, the metadata object ID, the metadata object name, the field name, and the metadata object type.
Public method InvalidMetadataObjectException(String, Exception, UInt32, String, String, Type) Initializes a new instance of the class with the specified error message, a reference to the inner exception that caused this exception, the metadata object ID, the metadata object name, the field name, and the metadata object type.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HasExplicitMessage Gets a value that indicates whether the exception has an explicit message. (Inherited from MetadataException.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property InvalidFieldName Gets or sets the field that is not valid.
Public property InvalidMetadataObjectId Gets or sets the invalid metadata object identifier.
Public property InvalidMetadataObjectName Gets or sets the invalid metadata object name.
Public property Message Gets or sets the exception message. (Overrides MetadataException.Message.)
Public property MetadataObjectType Represents the Microsoft .NET Framework type of the metadata object that is responsible for the exception. (Inherited from MetadataException.)
Public property ServerStackTrace Gets the server stack trace. (Inherited from MetadataException.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Returns the object serialization and streaming data. (Overrides MetadataException.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method Initialize Initializes the exception object.
Protected method LogEvent Logs the event. (Inherited from MetadataException.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Converts the exception object to a string. (Overrides MetadataException.ToString().)

Top

See Also

Reference

InvalidMetadataObjectException Class

Microsoft.SharePoint.BusinessData.Administration Namespace