Novell.Directory.Ldap.LdapConnection.getProperty C# (CSharp) Метод

getProperty() публичный Метод

Returns a property of a connection object.
public getProperty ( System name ) : Object
name System Name of the property to be returned. /// /// The following read-only properties are available /// for any given connection: ///
    ///
  • Ldap_PROPERTY_SDK returns the version of this SDK, /// as a Float data type.
  • /// ///
  • Ldap_PROPERTY_PROTOCOL returns the highest supported version of /// the Ldap protocol, as a Float data type.
  • /// ///
  • Ldap_PROPERTY_SECURITY returns a comma-separated list of the /// types of authentication supported, as a /// string.
  • ///
/// /// A deep copy of the property is provided where applicable; a /// client does not need to clone the object received. /// ///
Результат System.Object
        public virtual System.Object getProperty(System.String name)
        {
            if (name.ToUpper().Equals(Ldap_PROPERTY_SDK.ToUpper()))
                return Connection.sdk;
            else if (name.ToUpper().Equals(Ldap_PROPERTY_PROTOCOL.ToUpper()))
                return Connection.protocol;
            else if (name.ToUpper().Equals(Ldap_PROPERTY_SECURITY.ToUpper()))
                return Connection.security;
            else
            {
                return null;
            }
        }