WebPartManagerInternals.GetZoneID(WebPart) Método
Definição
public:
System::String ^ GetZoneID(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
public string GetZoneID (System.Web.UI.WebControls.WebParts.WebPart webPart);
member this.GetZoneID : System.Web.UI.WebControls.WebParts.WebPart -> string
Public Function GetZoneID (webPart As WebPart) As String
Parâmetros
Retornos
Uma cadeia de caracteres que representa a ID da zona que contém webPart.A string that represents the ID of the zone that contains webPart.
Comentários
O GetZoneID método retorna a ID da zona que contém o controle referenciado pelo webPart parâmetro.The GetZoneID method returns the ID of the zone that contains the control referenced by the webPart parameter.
Observação
A Zone propriedade de webPart faz referência ao objeto de zona real que contém webPart , não à ID da zona.The Zone property of webPart references the actual zone object that contains webPart, not the ID of the zone. Se o webPart estiver fechado no momento, o valor de sua Zone propriedade será null , e o GetZoneID método retornará a ID da última zona que webPart estava antes de ser fechada.If webPart is currently closed, the value of its Zone property is null, and the GetZoneID method will return the ID of the last zone that webPart was in prior to being closed.