diff options
author | Richard Webb <webby@beardmouse.org.uk> | 2015-11-02 19:32:44 +0300 |
---|---|---|
committer | Richard Webb <webby@beardmouse.org.uk> | 2015-11-02 19:32:44 +0300 |
commit | c5216a035f69e28736530622f6113653e57dd854 (patch) | |
tree | 0b538c920579caa6e34f1fa59b151cac9b41d526 /mcs/class/System.DirectoryServices | |
parent | e1a33279d41b79c0419e04b7df7cdbef9def8494 (diff) |
Add stub implementation of ActiveDirectoryObjectNotFoundException
largely copied from ActiveDirectoryOperationException
Diffstat (limited to 'mcs/class/System.DirectoryServices')
4 files changed, 86 insertions, 1 deletions
diff --git a/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_5.csproj b/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_5.csproj index 32eee55bf49..9d9d1629290 100644 --- a/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_5.csproj +++ b/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_5.csproj @@ -48,7 +48,8 @@ <Compile Include="..\..\build\common\Consts.cs.in" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
- <Compile Include="Assembly\AssemblyInfo.cs" />
+ <Compile Include="Assembly\AssemblyInfo.cs" /> + <Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryObjectNotFoundException.cs" />
<Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryOperationException.cs" />
<Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryPartition.cs" />
<Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryReplicationMetadata.cs" />
diff --git a/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_x.csproj b/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_x.csproj index 7a37d13b054..924e26d9036 100644 --- a/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_x.csproj +++ b/mcs/class/System.DirectoryServices/System.DirectoryServices-net_4_x.csproj @@ -49,6 +49,7 @@ <Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
+ <Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryObjectNotFoundException.cs" /> <Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryOperationException.cs" />
<Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryPartition.cs" />
<Compile Include="System.DirectoryServices.ActiveDirectory\ActiveDirectoryReplicationMetadata.cs" />
diff --git a/mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryObjectNotFoundException.cs b/mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryObjectNotFoundException.cs new file mode 100644 index 00000000000..11a796e36db --- /dev/null +++ b/mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryObjectNotFoundException.cs @@ -0,0 +1,82 @@ +/****************************************************************************** +* The MIT License +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the Software), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +* SOFTWARE. +*******************************************************************************/ +using System; +using System.Runtime.Serialization; +using System.Security.Permissions; + +namespace System.DirectoryServices.ActiveDirectory +{ + [Serializable] + public class ActiveDirectoryObjectNotFoundException : Exception, ISerializable + { + [MonoTODO] + public ActiveDirectoryObjectNotFoundException (string message, Type type, string name) : base(message) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public ActiveDirectoryObjectNotFoundException (string message, Exception inner) : base(message, inner) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public ActiveDirectoryObjectNotFoundException (string message) : base(message) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public ActiveDirectoryObjectNotFoundException () : base("DSUnknownFailure") + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected ActiveDirectoryObjectNotFoundException (SerializationInfo info, StreamingContext context) : base(info, context) + { + throw new NotImplementedException (); + } + + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + [MonoTODO] + public override void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext) + { + throw new NotImplementedException (); + } + + public string Name { + [MonoTODO] + get { + throw new NotImplementedException (); + } + } + + public Type Type { + [MonoTODO] + get { + throw new NotImplementedException (); + } + } + } +} diff --git a/mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources b/mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources index 0c18dadf88d..acaf20cac11 100644 --- a/mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources +++ b/mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources @@ -40,6 +40,7 @@ System.DirectoryServices/SortDirection.cs System.DirectoryServices/SortOption.cs ../../build/common/MonoTODOAttribute.cs System.DirectoryServices.Design/DirectoryEntryConverter.cs +System.DirectoryServices.ActiveDirectory/ActiveDirectoryObjectNotFoundException.cs System.DirectoryServices.ActiveDirectory/ActiveDirectoryOperationException.cs System.DirectoryServices.ActiveDirectory/ActiveDirectoryPartition.cs System.DirectoryServices.ActiveDirectory/ActiveDirectoryReplicationMetadata.cs |