Udostępnij za pośrednictwem


Klasa SharePointCommandException

Wyjątek, który jest generowany, kiedy polecenia programu SharePoint nie powiodło się.

Hierarchia dziedziczenia

Object
  Exception
    Microsoft.VisualStudio.SharePoint.SharePointCommandException
      Microsoft.VisualStudio.SharePoint.SharePointCommandCanceledException

Przestrzeń nazw:  Microsoft.VisualStudio.SharePoint
Zestaw:  Microsoft.VisualStudio.SharePoint (w Microsoft.VisualStudio.SharePoint.dll)

Składnia

'Deklaracja
<SerializableAttribute> _
Public Class SharePointCommandException _
    Inherits Exception
[SerializableAttribute]
public class SharePointCommandException : Exception

Typ SharePointCommandException uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna SharePointCommandException() Inicjuje nowe wystąpienie SharePointCommandException klasy.
Metoda publiczna SharePointCommandException(String) Inicjuje nowe wystąpienie SharePointCommandException klasy określony komunikat o błędzie.
Metoda chroniona SharePointCommandException(SerializationInfo, StreamingContext) Inicjuje nowe wystąpienie SharePointCommandException klasy serializowane dane.
Metoda publiczna SharePointCommandException(String, Exception) Inicjuje nowe wystąpienie SharePointCommandException klasy z określonym komunikat i odniesienia do wyjątek wewnętrzny, który spowodował wyjątek.
Metoda publiczna SharePointCommandException(String, String, String, String) Inicjuje nowe wystąpienie SharePointCommandException klasy z określony komunikat, wpisz pełną nazwę i oryginalne ślad stosu.
Metoda publiczna SharePointCommandException(String, String, String, String, Exception) Inicjuje nowe wystąpienie SharePointCommandException klasy z określony komunikat, wpisz pełną nazwę, oryginalne ślad stosu i odniesienia do wyjątek wewnętrzny, który spowodował wyjątek.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna CommandId Pobiera identyfikator polecenia, który spowodował wyjątek.
Właściwość publiczna Data Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Odziedziczone z Exception).
Właściwość publiczna FullTypeName Pobiera wpisz pełną nazwę klasy polecenia, który spowodował wyjątek.
Właściwość publiczna HelpLink Gets or sets a link to the help file associated with this exception. (Odziedziczone z Exception).
Właściwość publiczna HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Odziedziczone z Exception).
Właściwość publiczna InnerException Gets the Exception instance that caused the current exception. (Odziedziczone z Exception).
Właściwość publiczna Message Gets a message that describes the current exception. (Odziedziczone z Exception).
Właściwość publiczna OriginalStackTrace Pobiera oryginalny śladu stosu wyjątków od procesu vssphost4.exe.
Właściwość publiczna Source Gets or sets the name of the application or the object that causes the error. (Odziedziczone z Exception).
Właściwość publiczna StackTrace Gets a string representation of the immediate frames on the call stack. (Odziedziczone z Exception).
Właściwość publiczna TargetSite Gets the method that throws the current exception. (Odziedziczone z Exception).

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetBaseException When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Odziedziczone z Exception).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetObjectData Zestawy SerializationInfo z informacji o wyjątku. (Zastępuje Exception.GetObjectData(SerializationInfo, StreamingContext)).
Metoda publiczna GetType Gets the runtime type of the current instance. (Odziedziczone z Exception).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna ToString Creates and returns a string representation of the current exception. (Odziedziczone z Exception).

Początek

Zdarzenia

  Nazwa Opis
Zdarzenie chronione SerializeObjectState Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Odziedziczone z Exception).

Początek

Uwagi

Polecenia programu SharePoint są metody używane w rozszerzeniu narzędzia programu SharePoint w wywołanie do modelu obiektu programu SharePoint server.Polecenia programu SharePoint są wykonywane przez proces 64-bitowe, o nazwie vssphost4.exe.Wszelkie wyjątki wywoływane w vssphost4.exe jest zwracana do polecenia programu SharePoint jako SharePointCommandException.

Aby uzyskać więcej informacji na temat poleceń programu SharePoint, zobacz Wywoływanie modeli obiektów SharePoint.

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.SharePoint