Org.IdentityConnectors.Framework.Common.Objects.ConnectorObject.GetAttributeByName C# (CSharp) Method

GetAttributeByName() public method

public GetAttributeByName ( string name ) : ConnectorAttribute
name string
return ConnectorAttribute
        public ConnectorAttribute GetAttributeByName(string name)
        {
            return CollectionUtil.GetValue(_attrs, name, null);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Determine if the password is expired for this object.
 /// </summary>
 /// <param name="obj">
 /// <see cref="ConnectorObject" /> that should contain a password expired
 /// attribute.</param>
 /// <returns>
 /// <code>null</code> if the attribute does not exist and the value
 /// of the <see cref="ConnectorAttribute" /> if it does.</returns>
 public static bool? IsPasswordExpired(ConnectorObject obj)
 {
     ConnectorAttribute pwd = obj.GetAttributeByName(OperationalAttributes.PASSWORD_EXPIRED_NAME);
     return (pwd == null) ? null : GetBooleanValue(pwd);
 }
All Usage Examples Of Org.IdentityConnectors.Framework.Common.Objects.ConnectorObject::GetAttributeByName