// Disable will disable this net adapter
Disable will disable this net adapter
// Disable will disable this net adapter
func (n *NetAdapter) Disable() error {
	n.lock.Lock()
	defer n.lock.Unlock()
	if n.State != 2 {
		return nil
	}
	res, err := n.callFunction("Disable")
	if err != nil {
		return err
	}
	n = res
	return nil
}
func ( n * NetAdapter ) Disable ( ) error { n . lock . Lock ( ) defer n . lock . Unlock ( ) if n . State != 2 { return nil } res , err := n . callFunction ( " " ) if err != nil { return err } n = res return nil }
Disable will disable this net adapter
Disable will disable this net adapter