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 | |
---|---|---|
![]() |
SharePointCommandException() | Inicjuje nowe wystąpienie SharePointCommandException klasy. |
![]() |
SharePointCommandException(String) | Inicjuje nowe wystąpienie SharePointCommandException klasy określony komunikat o błędzie. |
![]() |
SharePointCommandException(SerializationInfo, StreamingContext) | Inicjuje nowe wystąpienie SharePointCommandException klasy serializowane dane. |
![]() |
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. |
![]() |
SharePointCommandException(String, String, String, String) | Inicjuje nowe wystąpienie SharePointCommandException klasy z określony komunikat, wpisz pełną nazwę i oryginalne ślad stosu. |
![]() |
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 | |
---|---|---|
![]() |
CommandId | Pobiera identyfikator polecenia, który spowodował wyjątek. |
![]() |
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Odziedziczone z Exception). |
![]() |
FullTypeName | Pobiera wpisz pełną nazwę klasy polecenia, który spowodował wyjątek. |
![]() |
HelpLink | Gets or sets a link to the help file associated with this exception. (Odziedziczone z Exception). |
![]() |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Odziedziczone z Exception). |
![]() |
InnerException | Gets the Exception instance that caused the current exception. (Odziedziczone z Exception). |
![]() |
Message | Gets a message that describes the current exception. (Odziedziczone z Exception). |
![]() |
OriginalStackTrace | Pobiera oryginalny śladu stosu wyjątków od procesu vssphost4.exe. |
![]() |
Source | Gets or sets the name of the application or the object that causes the error. (Odziedziczone z Exception). |
![]() |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Odziedziczone z Exception). |
![]() |
TargetSite | Gets the method that throws the current exception. (Odziedziczone z Exception). |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Odziedziczone z Object). |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object). |
![]() |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Odziedziczone z Exception). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetObjectData | Zestawy SerializationInfo z informacji o wyjątku. (Zastępuje Exception.GetObjectData(SerializationInfo, StreamingContext)). |
![]() |
GetType | Gets the runtime type of the current instance. (Odziedziczone z Exception). |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Odziedziczone z Object). |
![]() |
ToString | Creates and returns a string representation of the current exception. (Odziedziczone z Exception). |
Początek
Zdarzenia
Nazwa | Opis | |
---|---|---|
![]() |
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.