示例#1
0
            private PropertySet PropSetFromAttributes(IMFAttributes attributes)
            {
                if (attributes == null)
                {
                    return(null);
                }
                var  retValue = new PropertySet();
                uint cCount   = 0;

                attributes.GetCount(out cCount);
                for (uint i = 0; i < cCount; i++)
                {
                    Guid   key;
                    Object item = null;
                    attributes.GetItemByIndex(i, out key, ref item);
                    retValue.Add(key.ToString(), item);
                }
                return(retValue);
            }
示例#2
0
 public HResult GetCount(out int pcItems)
 {
     return(m_Attribs.GetCount(out pcItems));
 }