System.Runtime.Remoting.ObjRef.IsObjRefLite C# (CSharp) Метод

IsObjRefLite() приватный Метод

private IsObjRefLite ( ) : bool
Результат bool
        internal bool IsObjRefLite()
        {
            return (objrefFlags & FLG_LITE_OBJREF) == FLG_LITE_OBJREF;
        }

Usage Example

Пример #1
0
        } // ShouldUseUrlObjRef

        // Check whether the objref is well formed
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            // We skip the wellformed check for wellKnown,
            // objref-lite and custom objrefs
            bool wellFormed = true;

            if ((null == objectRef) ||
                (null == objectRef.URI) ||
                (!(objectRef.IsWellKnown() || objectRef.IsObjRefLite() ||
                   objectRef.GetType() != orType) &&
                 (null == objectRef.ChannelInfo)))
            {
                wellFormed = false;
            }

            return(wellFormed);
        }
All Usage Examples Of System.Runtime.Remoting.ObjRef::IsObjRefLite