Enterra.V8x1C.DOM.DocumentManager.FindByAttribute C# (CSharp) Method

FindByAttribute() public method

НайтиПоРеквизиту (FindByAttribute)
public FindByAttribute ( string attributeName, object value ) : DocumentRef
attributeName string
value object
return DocumentRef
        public DocumentRef FindByAttribute(string attributeName, object value)
        {
            if (value is BaseObject)
            {
                value = (value as BaseObject).Ptr;
            }
            object ptr = InvokeV8Method("FindByAttribute", attributeName, value);
            return ptr != null ? new DocumentRef(Session, DocumentName, ptr) : null;
        }