Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the exception that is thrown when an extension fails to read a data object that is shared by a primary snap-in. The extension that receives this exception can catch this exception and continue functioning.
Namespace:   Microsoft.ManagementConsole.Advanced
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)
Inheritance Hierarchy
System.Object
  System.Exception
    Microsoft.ManagementConsole.Advanced.PrimarySnapInDataException
Syntax
[SerializableAttribute]
public sealed class PrimarySnapInDataException : Exception
[SerializableAttribute]
public ref class PrimarySnapInDataException sealed : Exception
[<Sealed>]
[<SerializableAttribute>]
type PrimarySnapInDataException = 
    class
        inherit Exception
    end
<SerializableAttribute>
Public NotInheritable Class PrimarySnapInDataException
    Inherits Exception
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | PrimarySnapInDataException() | Initializes a new instance of the PrimarySnapInDataException class. | 
| .jpeg) | PrimarySnapInDataException(SerializationInfo, StreamingContext) | This is the serialization constructor. | 
| .jpeg) | PrimarySnapInDataException(String) | Initializes a new instance of the PrimarySnapInDataException class using a customized message as a parameter. This is the constructor that is typically used. | 
| .jpeg) | PrimarySnapInDataException(String, Exception) | Creates a new instance with an inner exception. | 
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Data | (Inherited from Exception.) | 
| .jpeg) | HelpLink | (Inherited from Exception.) | 
| .jpeg) | InnerException | (Inherited from Exception.) | 
| .jpeg) | Message | (Inherited from Exception.) | 
| .jpeg) | Source | (Inherited from Exception.) | 
| .jpeg) | StackTrace | (Inherited from Exception.) | 
| .jpeg) | TargetSite | (Inherited from Exception.) | 
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals(Object) | (Inherited from Object.) | 
| .jpeg) | GetBaseException() | (Inherited from Exception.) | 
| .jpeg) | GetHashCode() | (Inherited from Object.) | 
| .jpeg) | GetObjectData(SerializationInfo, StreamingContext) | Serializes to a stream.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).) | 
| .jpeg) | GetType() | (Inherited from Exception.) | 
| .jpeg) | ToString() | (Inherited from Exception.) | 
Remarks
The failure to read can be attributed to any of the following causes:
- The primary snap-in is shutting down and its data object is disconnected. 
- The primary snap-in data object does not support the requested clipboard format. 
- The MMC run-time received a failure HRESULT during a call to IDataObject. 
- The MMC run-time received invalid out parameters after a call to IDataObject. 
- The request to read data has timed out. 
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ManagementConsole.Advanced Namespace
Return to top