Show / Hide Table of Contents

    Class DuplicateNotAllowedException

    An exception thrown when an operation attempts to create a duplicate in a collection with set semantics (C5.IExtensible`1.AllowsDuplicates is false) or attempts to create a duplicate key in a dictionary.

    With collections this can only happen with Insert operations on lists, since the Add operations will not try to create duplictes and either ignore the failure or report it in a bool return value.

    With dictionaries this can happen with the C5.IDictionary`2.Add(`0,`1) metod.

    Inheritance
    System.Object
    DuplicateNotAllowedException
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public class DuplicateNotAllowedException : Exception

    Constructors

    | Improve this Doc View Source

    DuplicateNotAllowedException()

    Create a simple exception with no further explanation.

    Declaration
    public DuplicateNotAllowedException()
    | Improve this Doc View Source

    DuplicateNotAllowedException(String)

    Create the exception with an explanation of the reason.

    Declaration
    public DuplicateNotAllowedException(string message)
    Parameters
    Type Name Description
    System.String message
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)