internal static int SafePropVariantClear(ref PROPVARIANT pvar) { return(UnsafeNativeCompoundFileMethods.PropVariantClear(ref pvar)); }
// <SecurityNote> // Critical: This method calls security suppressed unmanaged CompoundFile code. // ComoundFileIOPermission needs to be demanded to ensure that the only calls // that can go through must be either done in Full Trust or with under assertion of // CompoundFileIOPermission. // SecurityTreatAsSafe: Demands CompoundFileIOPermission before it makes any calls to // unmanaged APIs // </SecurityNote> internal static int SafePropVariantClear(ref PROPVARIANT pvar) { SecurityHelper.DemandCompoundFileIOPermission(); return(UnsafeNativeCompoundFileMethods.PropVariantClear(ref pvar)); }